Skip to content

Commit

Permalink
🐛 Blocked avatar upload as script ran in play mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Spokeek committed Oct 4, 2023
1 parent 9502745 commit bdc92ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Packages/gogoloco/Editor/GoGoLocoLink.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if UNITY_EDITOR

using UnityEngine;
using UnityEditor;

Expand All @@ -14,3 +16,5 @@ public static void ShowFolder()
EditorGUIUtility.PingObject(asset);
}
}

#endif
12 changes: 8 additions & 4 deletions Packages/gogoloco/Editor/GoGoLocoMenu.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -19,7 +21,7 @@ public class AddPrefabToSelected : EditorWindow
[MenuItem("Tools/GoGoLoco/Add Prefabs")]
public static void ShowWindow()
{
GetWindow<AddPrefabToSelected>("GoGoLoco Prefabs");
GetWindow<GoGoLocoMenu>("GoGoLoco Prefabs");
}

/**
Expand Down Expand Up @@ -82,4 +84,6 @@ private void OnGUI()
}
GUI.enabled = true;
}
}
}

#endif

0 comments on commit bdc92ba

Please sign in to comment.