Cannot clear a scene


#1

I cannot find a way of clearing the scene form all the scene objects. Maybe im just doing it wrong. Here’s how I do it :

SceneManager scene;
scene.clearScene();

I would really appreciate some help, cauz I just cannot find the solution.
Tnx.


#2

Can you try modifying one of the example projects to reproduce the issue and post it here so I can reproduce, thanks.


#3

Sorry, i cant really reproduce the issue. Am just asking on how to use the clear scene method of the scene manager class. Do I need to create a scene manager object or do i just call the method statically?
tnx again


#4

You can access an instance of SceneManager through SceneManager::instance() static method, on which you can call clearScene.


#5

Thank you very much for replying, you are doing so much for this community!