Debug.Break

public static void Break();

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.

using UnityEngine;

public class ExampleScript : MonoBehaviour { void Start() { Debug.Break(); } }