|
Is there a function or MonoBehaviour in Unity which is triggered before a scene changes in the scene that is being changed from? (such as when Application.LoadLevel() is called) Something like the opposite of the Awake() function? Thank You!
(comments are locked)
|
|
There is an OnLevelWasLoaded(int : level) function, which should do exactly what you want Sorry - I should rephrase my question. I want to know of a function that is called before a scene changes, in the scene the user is changing from.
Aug 02 '10 at 08:49 PM
BinaryCaveman
Then no, there isn't one. You'll get an OnDisabled, but that's about it - The problem is that it's fired when you disable the script too (or make the gameobject inactive)
Aug 02 '10 at 08:51 PM
Mike 3
OK, then. Thank You!
Aug 02 '10 at 08:51 PM
BinaryCaveman
(comments are locked)
|

hey you commented on mine so...
well I got the gun to show but now I need it to move with the camera. Also I kinda need crosshair help.