Debug.Break 中止
static function Break () : void
Description描述
Pauses the editor.
暂停编辑器。
This is useful when you want to check certain values on the inspector and you are not able to pause it manually.
当你想要检查在检视面板的某些值并且你不可能手动暂停它时这个函数非常有用的。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {Debug.Break();}}
Debug.Break();