diff --git a/Editor/ClusterInspector.cs b/Editor/ClusterInspector.cs index 2290d71..436861e 100644 --- a/Editor/ClusterInspector.cs +++ b/Editor/ClusterInspector.cs @@ -498,8 +498,8 @@ public class ClusterInspector : Editor { } } - //private int selectedInputType = 0; private bool showSynapses = true; + protected bool breakOnWake = false; void DrawInspector(VisualElement inspectorContainer) { if (inspectorContainer == null) return; @@ -605,11 +605,19 @@ public class ClusterInspector : Editor { // Handles.color = Color.yellow; // Handles.DrawLine(this.gameObject.transform.position, this.gameObject.transform.position + worldVector); // } + + EditorGUILayout.Space(); + breakOnWake = EditorGUILayout.Toggle("Break on wake", breakOnWake); + if (breakOnWake) { + if (this.currentNucleus.isSleeping == false) + Debug.Break(); + } }); inspectorContainer.Add(container); } + void OnSceneGUI(SceneView sceneView) { if (this.gameObject != null) { Vector3 worldVector = this.gameObject.transform.TransformVector(this.currentNucleus.outputValue);