ahmad.karami Posted April 24, 2020 Share Posted April 24, 2020 (edited) Hi , My Hardware & My Software : OS : Windows 10 - 64 bit Game Engine : Unigine 2.11.0.1 Free Version CPU : Corei7 - 4GHZ GC : NVidia GTX 760 - 2GB Real RAM : 16 GB HDD : 1 TB Reproduction Bug: 01- I Open Unigine 02- I make a new level 03- I make a new C# code file , and FindNode does not work for delete object but GetNodeByName does work for delete object , I used a content object not a reference object :-) private const string Name = "main_player"; public Node oneNode; private void Init() { oneNode=node.FindNode(Name); //oneNode=World.GetNodeByName(Name); oneNode.DeleteLater(); } Additional explanations : I can not delete my camera in game with FindNode but I can delete my camera in game with GetNodeByName Thank You Edited April 27, 2020 by ahmad.karami Link to comment
vvvaseckiy Posted April 27, 2020 Share Posted April 27, 2020 Hello Ahmad, As you can see from api reference findNode returns a child node, in your case, "main_player" node has no children, so it is returns null. Thanks 1 Link to comment
Recommended Posts