Method execution order after LoadLevel()?

I'm a little confused about the order of execution when using "LoadLevel()" with an class using "DontDestroyOnLoad()".

I know that Awake() is always before OnEnable() or Start(), but it seems that I have to use "OnEnable()" after a level load to access objects in the scene because it won't find them in Awake().

Again, I only have this problem when using DontDestroyOnLoad().

Any help will be greatly appreciated! Stephane

You probably want to try using start, as OnEnable is called when the object becomes active.

Here is the order:

Awake is called - this is called as soon as the object is in the scene Start is called - this is called when the object becomes active Update and FixedUpdate are called from then on

hope this helps!