Scene to scene transition in iPhone

Hi everybody,

i have created 2 scenes. while going from one to another it is taking some time and Stucking in the first scene.

any help to have smooth transition.

Thanks
DaSaRaDHI BENDI

Does the second scene have to do a lot of setting up?

YES, it has a mesh scene file and 10-15 mesh charecters and UI part .

Regards

There is no such thing.
Level switches work like:

  1. You call LoadLevel
  2. The old level is removed from memory
  3. The new level is fully loaded to memory
  4. DontDestroyOnLoad objects are inserted to the new level
  5. Awake is executed on all newly created components in the new level
  6. Start is executed on all components in the new level

step 2 and 3 actually happen together and are fully blocking. While they happen, the rest of unity is put to halt.

what you can do is introduce a step before and after that:
A guitexture you fade in in the old scene that remains there during load and fades out in the new scene.

Alternatively you can use xCode and cocoa to overlay a “loading view” while unity in the background is blocking for loading.

is it possible to spawn a cut scene movie while the scene is loading …

I was wondering if it’s better to jam everything one scene (if it will fit vs loading new scenes). What are the trade offs over and above memory consumption?

My game will have 1 main scene and 5 sub scenes. I prefer to keep the main scene in memory and only load one sub scene at a time … I thought I might be able to use LoadLevelAdditive but i can’t see any way to unload that sub scene after I am done with it

I hope a movie could be played but I guess a texture my have to suffice.

iByte

it would be a very bad idea to play a movie while you load as you raise the loading time even further.

Technically it should be possible by doing it in XCode.
Within unity, I doubt so as the whole engine stops on load.

From what I read you require Unity Pro and Unity blocks while running a movie anyway. Not to useful for my intended purpose.

iByte
:smile:

HI pls do u have any tutorial or sample codes or application that does the above function, i mean shifting the view frm unity Game view and X code view. PLs help me out boss i am in a trouble with this. In between the game play i need to bring the MPMediaPickerController view.

check out the basic Xcode tutorials and free vids on itunes on Core Animation. That will give you all the informations required :slight_smile:

Thanks a lot i will go through it and will be back