AggrorJorn Posted June 12, 2013 Share Posted June 12, 2013 I have a Pivot with a camera as child. This is done in the editor. When I attach a script to the Pivot with the following code in the start function, it tells me that are no children: function Script:Start() --Count children count = self.entity:CountChildren(); System:Print(count) --Find the camera child camera = self.entity:FindChild("camera") if camera == nil then System:Print("Camera child not found") end end If I do this with C++ then it does work. It will tell me that there is one child that I can also access by name. Link to comment Share on other sites More sharing options...
Rick Posted June 12, 2013 Share Posted June 12, 2013 I noticed this a while back also. Link to comment Share on other sites More sharing options...
shadmar Posted June 12, 2013 Share Posted June 12, 2013 You can work around using something like this: http://www.leadwerks.com/werkspace/topic/6386-c-finding-entities-in-a-scene/#entry56010 HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Rick Posted June 12, 2013 Share Posted June 12, 2013 Yeah, we worked around this. I hate saying that because I don't want Josh to think it's not important then that he fix it asap because this is a pretty basic feature of the editor. Will need to test if getting the parent works as I'll need that. Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 12, 2013 Author Share Posted June 12, 2013 Just a basic as moving multiple selected items to other folders in the structure. Right now you can move only one object at the time. Link to comment Share on other sites More sharing options...
Admin Posted June 21, 2013 Share Posted June 21, 2013 I don't see any reason in the code this would be happening. Can you post an example? Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 21, 2013 Author Share Posted June 21, 2013 Odd, I can no longer repdroduce it. NVM then if I find, I will let you know. Link to comment Share on other sites More sharing options...
Admin Posted June 21, 2013 Share Posted June 21, 2013 FIXED! I think it actually is, since I recently did some changes related to this. Link to comment Share on other sites More sharing options...
Recommended Posts