From 88b0acdaaaff98740cb0afb6cf1113d8053fcd77 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 2 Aug 2025 22:21:00 -0400 Subject: [PATCH] fix: build fix --- Assets/Scripts/Core/Graph Tasks/CheckGenericObserver.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/Core/Graph Tasks/CheckGenericObserver.cs b/Assets/Scripts/Core/Graph Tasks/CheckGenericObserver.cs index a808542..d7dacb2 100644 --- a/Assets/Scripts/Core/Graph Tasks/CheckGenericObserver.cs +++ b/Assets/Scripts/Core/Graph Tasks/CheckGenericObserver.cs @@ -6,7 +6,9 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; +#if UNITY_EDITOR using NodeCanvas.Editor; +#endif using UnityEditor; namespace Reset { @@ -32,6 +34,7 @@ namespace Reset { private EnvironmentObserver observer; +#if UNITY_EDITOR protected override void OnTaskInspectorGUI(){ BBParameterEditor.ParameterField("Cast Type", castType); @@ -58,6 +61,7 @@ namespace Reset { drawGizmosOnlyWhenActive = EditorGUILayout.Toggle("Draw Gizmos Only When Active", drawGizmosOnlyWhenActive); } } +#endif //Return null if init was successfull. Return an error string otherwise protected override string OnInit(){