Skip to content

Instantly share code, notes, and snippets.

@yasuyuki-kamata
Created March 21, 2018 04:27
Show Gist options
  • Save yasuyuki-kamata/f54d42810cd701dca5591188d632187e to your computer and use it in GitHub Desktop.
Save yasuyuki-kamata/f54d42810cd701dca5591188d632187e to your computer and use it in GitHub Desktop.
UnityエディタのPlayを止める
public class EditorStopTest : MonoBehaviour
{
public void Quit()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment