diff --git a/Packages/gogoloco/Editor/GoGoLocoLink.cs b/Packages/gogoloco/Editor/GoGoLocoLink.cs index e4eeac8..8da2c90 100644 --- a/Packages/gogoloco/Editor/GoGoLocoLink.cs +++ b/Packages/gogoloco/Editor/GoGoLocoLink.cs @@ -1,3 +1,5 @@ +#if UNITY_EDITOR + using UnityEngine; using UnityEditor; @@ -14,3 +16,5 @@ public static void ShowFolder() EditorGUIUtility.PingObject(asset); } } + +#endif \ No newline at end of file diff --git a/Packages/gogoloco/Editor/GoGoLocoMenu.cs b/Packages/gogoloco/Editor/GoGoLocoMenu.cs index 6074c0c..1b4cba2 100644 --- a/Packages/gogoloco/Editor/GoGoLocoMenu.cs +++ b/Packages/gogoloco/Editor/GoGoLocoMenu.cs @@ -1,8 +1,10 @@ -using UnityEngine; +#if UNITY_EDITOR + +using UnityEngine; using UnityEditor; using VRC.SDK3.Avatars.Components; -public class AddPrefabToSelected : EditorWindow +public class GoGoLocoMenu : EditorWindow { private GameObject avatarTarget; @@ -19,7 +21,7 @@ public class AddPrefabToSelected : EditorWindow [MenuItem("Tools/GoGoLoco/Add Prefabs")] public static void ShowWindow() { - GetWindow("GoGoLoco Prefabs"); + GetWindow("GoGoLoco Prefabs"); } /** @@ -82,4 +84,6 @@ private void OnGUI() } GUI.enabled = true; } -} \ No newline at end of file +} + +#endif \ No newline at end of file