Parents
auto child = scene.createGameObject("My Child");
auto parent = scene.createGameObject("My Parent");
//first solution
child.setParent(parent);
//second solution
child.setParent(parent->getId());Other Functions
Last updated
auto child = scene.createGameObject("My Child");
auto parent = scene.createGameObject("My Parent");
//first solution
child.setParent(parent);
//second solution
child.setParent(parent->getId());Last updated