public static void Break ();

描述

暂停该 Editor。

当您想要检查该 Inspector 上的某些值并且您无法手动暂停它时, 这非常有用。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Debug.Break(); } }