- Home /
Question by
LegionIsTaken · Aug 26, 2011 at 08:21 PM ·
runtimestopplaymode
Exit playmode at runtime using code
HiiIIIiiii.
Is there a way that you can exit playmode using scripts?
Something along these lines.´:
if(GUI.Button...){
ExitPlaymode;
}
(Just an example.)
Thank you.
Comment
Exit playmode. I apologize for lack of info. I will update the OP.
Best Answer
Answer by Joshua · Aug 26, 2011 at 09:02 PM
Seems like you can simple set EditorApplication.isPlaying = false/true to exit or enter playmode.
Your answer
Follow this Question
Related Questions
Export objects to a .3DS file at runtime 1 Answer
In game pause menu 2 Answers
How do I stop an 'IF' function from running from another script ? 2 Answers