Untitled
public lua v1 · immutable function sceneNode:getNode(name) local object = nil local found = false table.foreach(self.children, function(index, item) if found == false then if item.name == name then object = item found = true else local temp = item:getNode(name) if temp ~= nil then object = temp found = true end end end end) return object end