EditorApplication.EnterPlaymode(string,string[])

Switch to Manual

Description

Switches the editor to Play mode.

Equivalent to setting EditorApplication.isPlaying to true. isPlaying