Version: 5.3
public static bool isPaused ;

설명

Is editor currently paused?

Lets you change pause state programmatically, like pressing the Pause button in the main toolbar.

See Also: isPlaying.

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

using UnityEngine; using UnityEngine.SceneManagement; using UnityEditor; using UnityEditor.SceneManagement;

public class isPausedExample {

[MenuItem("Examples/Scene paused in play mode")] static void EditorPlaying() {

if (EditorApplication.isPaused) { Debug.Log("Paused"); } } }