Hi,
I am trying to remove an Node from the Editor using script & I am getting following error on the command prompt.
Editor::removeNode(): can't find 04002CC0 node
The scenrio is mentioned below in steps
- In Editor, add grass mesh from the Editor menu option & name it as "Grass"
- In Script, using engine.editor.findNode("Grass"); I get the index
- Using index, retrive the Node object (grassNode)
- Call engine.editor.releaseNode( grassNode );
- Append it using node_append( grassNode );
- Now in TriggerEnter callback use engine.editor.removeNode( grassnode ); to remove the Grass mesh
The problem is that, I am getting above error at TriggerEnter callback & the Grass mesh is not removed from the Editor.
From the documentation I see that my step to remove an node is correct, but am I going wrong some where?
Can some one point the issue.
Thanks