Version: 5.5
public static bool isPaused ;

説明

エディターが一時停止中かどうか

これはツールバーの [Pause] ボタンと同じ効果です。

See Also: isPlaying.

// Simple editor Script that confirms the running
// game is paused.

using UnityEngine; using UnityEngine.SceneManagement;

public class isPausedExample { [MenuItem("Examples/Scene paused in play mode")] static void EditorPlaying() { if (EditorApplication.isPaused) { Debug.Log("Paused"); } } }