- Home /
Detect when the Player starts
Is there a way to detect when the player starts (ie. the user presses the play button on the editor) from an exteded Editor class ?
Answer by Dave-Carlile · Feb 05, 2013 at 09:38 PM
Add an Awake function to a script - this gets called when the game starts. Once you have that functicon, if you just want to execute code when starting up in the editor, you can check the Application.isEditor property.
Your answer
Follow this Question
Related Questions
How to switch from normal to maximized screen (& vise versa) while I run my game in the editor? 1 Answer
Ads show up in editor but not during play test on iPhone 1 Answer
How would I go about creating a custom Unity Event in a Custom Unity Editor/Inspector? 0 Answers
Cannot focus GUI.Window in OnSceneGUI 0 Answers
Play button takes a lot of time 3 Answers