Jump to content

[SOLVED] Reverse of getRootNode


photo

Recommended Posts

Posted

In your car example, I can get parent object by getRootNode.

 

But when I want to access my entity, object.getParent() returns NULL.

 

What is the reverse of getRootNode()?

 

Thanks.

Posted

Hi,

 

Entity associates itself with the node using Node::setVariable() method.

Thus you can acces entity instance by invoking getVariable() for the root node.

  • Like 1
×
×
  • Create New...