EditorApplication.ExitPlaymode(string,string[])

Switch to Manual

Description

Switches the editor to Edit mode.

Equivalent to setting EditorApplication.isPlaying to false. isPlaying