Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

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(); } }

Did you find this page useful? Please give it a rating: