- Home /
Does Unity have an equivalent to CCDirector?
In Cocos2D there's something a class called CCDirector which will manage the active scene, push/pop/replace scenes, scene transitions etc. Is there an analogous class in Unity that will manage a scene stack or will I have to implement my own? I know its trivial but the more code I write the more I have to bug test. ;)
As far as I know, there is no such built in class. I have my own Director class to handle such transitions and game state. What are the specific CCDirector features you are missing?
What I really only need is a way to transition between scenes and to push/pop a scene for the pause menu.
Answer by DannyB · Jun 15, 2013 at 07:42 AM
Unity does not have an equivalent built in concept, you would have to roll your own Director.
For motion transitions you would probably move the camera or the root of all your objects (depending on the situation).
For fade transitions you would probably animate the alpha of an overlay.
For pause menu, instead of giving it its own scene, you can create a prefab and have the Director instantiate it on pause.
Your answer
Follow this Question
Related Questions
How to have the scene load after a few seconds 1 Answer
Access gameObject between multi-scene 0 Answers
New input system and Scene Manager 0 Answers
GameManager and scene design issue. 1 Answer
Level Independant Data 2 Answers