From 9db7de16ea497ed9e469497675b5bc82c6e88b57 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 9 Feb 2026 11:32:25 +0100 Subject: [PATCH] Basic pheromone placement --- Editor/ClusterInspector.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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);