Skip to content

Commit

Permalink
2.3.6 - Updated GGL Variant, reduced package size.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustBuddy committed May 8, 2024
1 parent cf0831b commit 047b824
Show file tree
Hide file tree
Showing 65 changed files with 157,797 additions and 2,461,223 deletions.
52 changes: 18 additions & 34 deletions Editor/PosesExtensionImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,42 @@ namespace BUDDYWORKS.PosesExtension
{
public class PEPrefabSpawner : MonoBehaviour
{
//VRCF Prefab definitions
// VRCF Prefab definitions
public static string prefabPE_Standalone_VRCF = "ff714a403f2fe944aa77358222a4be1c";
public static string prefabPE_GGL_VRCF = "09cb0fd5fac430446b22b023b90bd66d";
public static string VRCF_Path = "Packages/com.vrcfury.vrcfury";

//MA Prefab definitions
// MA Prefab definitions
public static string prefabPE_Standalone_MA = "095b224818f91be42a97b83442ee50de";
public static string prefabPE_GGL_MA = "09cb0fd5fac430446b22b023b90bd66d";
// public static string prefabPE_GGL_MA = "09cb0fd5fac430446b22b023b90bd66d";
public static string MA_Path = "Packages/nadena.dev.modular-avatar";

//GGL Prefab definitions
// GGL Prefab definitions
public static string prefabGGL_Beyond = "10b55c87769faa544ae55a6de658bf86";
public static string prefabGGL_All = "d1e19656881f0994b880e2ea7164e6bf";

// Toolbar Menu
[MenuItem("BUDDYWORKS/Poses Extension/Spawn Prefab... [VRCFury]", false, 0)]
[MenuItem("BUDDYWORKS/Poses Extension/Spawn Standalone Prefab... [VRCFury] [Recommended]", false, 0)]
public static void SpawnPE()
{
SpawnPrefab(prefabPE_Standalone_VRCF);
Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");

NotifyOrder();
}

[MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [VRCFury]", false, 1)]
[MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [VRCFury] [Lite]", false, 1)]
public static void SpawnPEGGL()
{
SpawnPrefab(prefabPE_GGL_VRCF);
Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");
NotifyOrder();
}


[MenuItem("BUDDYWORKS/Poses Extension/Spawn Prefab... [ModularAvatar] (Experimental)", false, 20)]
public static void SpawnPE_MA()
{
SpawnPrefab(prefabPE_Standalone_MA);
Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");
NotifyOrder();
}

// [MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [ModularAvatar] (Experimental)", false, 30)]
// public static void SpawnPEGGL_MA()
// {
// SpawnPrefab(prefabPE_Standalone_MA);
// Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");
// }


[MenuItem("BUDDYWORKS/Poses Extension/Spawn GoGo Loco Beyond Prefab...", false, 60)]
public static void SpawnGGLBeyond()
{
Expand All @@ -66,20 +56,18 @@ public static void SpawnGGLAll()
[MenuItem("BUDDYWORKS/Poses Extension/Prefab must go after Locomotion in Hierarchy!", false, 1000)]
public static void DISCLAIMER()
{
Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");
NotifyOrder();
}


// Enable or disable menu items dynamically


[MenuItem("BUDDYWORKS/Poses Extension/Spawn Prefab... [VRCFury]", true)]
[MenuItem("BUDDYWORKS/Poses Extension/Spawn Standalone Prefab... [VRCFury] [Recommended]", true)]
public static bool ValidateSpawnPE()
{
return AssetDatabase.IsValidFolder(VRCF_Path) != false;
}

[MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [VRCFury]", true)]
[MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [VRCFury] [Lite]", true)]
public static bool ValidateSpawnPEGGL()
{
return AssetDatabase.IsValidFolder(VRCF_Path) != false;
Expand All @@ -91,12 +79,6 @@ public static bool ValidateSpawnPE_MA()
return AssetDatabase.IsValidFolder(MA_Path) != false;
}

// [MenuItem("BUDDYWORKS/Poses Extension/Spawn GGL-Variant Prefab... [ModularAvatar] (Experimental)", true)]
// public static bool ValidateSpawnPEGGL_MA()
// {
// return AssetDatabase.IsValidFolder(MA_Path) != false;
// }

[MenuItem("BUDDYWORKS/Poses Extension/Spawn GoGo Loco Beyond Prefab...", true)]
public static bool ValidateSpawnGGLBeyond()
{
Expand All @@ -109,10 +91,12 @@ public static bool ValidateSpawnGGLAll()
return AssetDatabase.LoadAssetAtPath<GameObject>(AssetDatabase.GUIDToAssetPath(prefabGGL_All)) != null;
}





// Called to notify about the thing.
private static void NotifyOrder()
{
Debug.Log("Make sure the Poses Extension Prefab is placed after your Locomotion prefab in the Hierarchy, else you might encounter issues.");
return;
}

// Prefab Spawner
private static void SpawnPrefab(string guid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
version: 3
unityVersion: 2022.3.6f1
vrcfuryVersion: 1.830.0
vrcfuryVersion: 1.836.0
somethingIsBroken: 0
config:
features: []
Expand All @@ -64,26 +64,29 @@ MonoBehaviour:
version: 1
fileID: 0
guid:
id: a148822042ee8bd41b1b865f4d4495d0|Packages/wtf.buddyworks.posesextension/Pose
Extension/Data/GoGo Loco Variant/Poses Extension - Action (GGL).controller
objRef: {fileID: 9100000, guid: a148822042ee8bd41b1b865f4d4495d0, type: 2}
id: 55b7d88510726684eae850eaab5274f2|Packages/wtf.buddyworks.posesextension/Pose
Extension/Data/Variants/GoGo Loco Variant/Poses Extension - Action
(GGL Variant).controller
objRef: {fileID: 9100000, guid: 55b7d88510726684eae850eaab5274f2, type: 2}
type: 4
menus:
- menu:
version: 1
fileID: 0
guid:
id: bc967b8fbe0d2c7448ae8ed4be124f23|Packages/wtf.buddyworks.posesextension/Pose
Extension/Data/GoGo Loco Variant/Poses Extension - Root Menu (GGL).asset
objRef: {fileID: 11400000, guid: bc967b8fbe0d2c7448ae8ed4be124f23, type: 2}
id: c1d1ceecc58c64441a69ee7d84050563|Packages/wtf.buddyworks.posesextension/Pose
Extension/Data/Variants/GoGo Loco Variant/Poses Extension - Root Menu
(GGL Variant).asset
objRef: {fileID: 11400000, guid: c1d1ceecc58c64441a69ee7d84050563, type: 2}
prefix:
prms:
- parameters:
version: 1
fileID: 0
guid:
id: 2fbf80741256c0048b04595b6907d40c|Packages/wtf.buddyworks.posesextension/Pose
Extension/Data/GoGo Loco Variant/Poses Extension - Parameters (GGL).asset
Extension/Data/Variants/GoGo Loco Variant/Poses Extension - Parameters
(GGL Variant).asset
objRef: {fileID: 11400000, guid: 2fbf80741256c0048b04595b6907d40c, type: 2}
smoothedPrms: []
globalParams:
Expand Down
Loading

0 comments on commit 047b824

Please sign in to comment.