- Home /
Unity UI screen transitions
Hi all, I am working on Unity 4.6. UI and i wonder if i can make some transitions between scenes instead of Application.LoadLevel. Can i load different scenes and use camera transition animation to navigate to selected scene ?
Thanks in advance.
Application.LoadLevel
IS loading a different scene.
if you don't want to actually load a new scene then your options are limited:
1) generate your game scenes/world dynamically either from code or setup files (quite contrary to the way unity works best, but i've done it in the past)
2) selectively enable game objects for each 'scene'... which isn't ideal either ;)
there are other things that you could do, but i believe the above are the most obvious.
why the aversion to Application.LoadLevel
?
Application.LoadLevel loads level without any animations .. i want to move from Scene A to Scene B (for example) .. i want user to feel that camera was moved from scene A to Scene B
Answer by Mmmpies · Jan 13, 2015 at 11:11 AM
No. You can have one scene and move a camera to a different location but if you put a different scene and move to that you have to load the new scene at which point the current scene freezes.
If you don't want to leave the user staring at a frozen screen then you could put an extra scene inbetween with a canvas and an image and even some text describing where you're going to but thats the best I can think of as a work around.
So go through doorway to next scene.
Load the inbetween scene. Should load instantly if it only has an image and some text.
"And now our hero travels through the mountain pass to the next adventure"
As soon as that loads load the actual next scene.
EDIT:
OK but can you give me an idea about your game setup like is it 2D or 3D a screen shot would be good. There are lots of different ways of doing things in unity and it depends on your setup which one will work.
Oh and im working from a phone so internet access is patchy.
Ok , lets say we have one scene with different panels. Will it take too long time to render all panels ? And is it better that having many separated scenes ? And how can i move the camera to different locations in the same scene ?! if you have example i will be grateful