Jump to content

unparent


photo

Recommended Posts

Posted

getNode()->setWorldParent(NodePtr());

 

Does the unparent method exist as a separate function?

Posted

Hello,

Use setParent / setWorldParent for this:

node->setParent(NodePtr());
node->setWorldParent(NodePtr());

In 2.10 you can just do this:

node->setParent(nullptr);

Thanks.

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

thank you. 

 

what is diffrent of setParent and setWorldParent?

×
×
  • Create New...