Hello, I’m trying to transfer a node and its components from one scene to another. I know the node exists in the destination scene because I can get its components and child nodes. However, the model itself is not visible. Any help would be appreciated, thanks.
...
player_->RemoveAllChildren();
player_->RemoveAllComponents();
File loadFile(context_,main_->filesystem_->GetProgramDir()
+ "Data/Models/" + modelFilename + ".xml", FILE_READ);
Scene* scene = new Scene(context_);
scene->LoadXML(loadFile);
player_ = scene->GetChild("player");
player_->SetScene(scene_);
player_->GetComponent<AnimationController>()->PlayExclusive("Models/idle.ani", 0, true, 0.0f);
scene->Remove();
...