diff --git a/Assets/VRM/Editor/VRM.Editor.asmdef b/Assets/VRM/Editor/VRM.Editor.asmdef index 19d22acef..88f69347e 100644 --- a/Assets/VRM/Editor/VRM.Editor.asmdef +++ b/Assets/VRM/Editor/VRM.Editor.asmdef @@ -7,7 +7,8 @@ "GUID:7da8a75dcade2144aab699032d7d7987", "GUID:8d76e605759c3f64a957d63ef96ada7c", "GUID:5f875fdc81c40184c8333b9d63c6ddd5", - "GUID:301b251fd9834274c9228e0532f444f7" + "GUID:301b251fd9834274c9228e0532f444f7", + "GUID:bc66ece0f33b52446a0830c05781d4db" ], "includePlatforms": [ "Editor" diff --git a/Assets/VRM/Editor/VrmTopMenu.cs b/Assets/VRM/Editor/VrmTopMenu.cs index c7314e247..c85fce7be 100644 --- a/Assets/VRM/Editor/VrmTopMenu.cs +++ b/Assets/VRM/Editor/VrmTopMenu.cs @@ -1,4 +1,5 @@ -using UnityEditor; +using UniGLTF; +using UnityEditor; using VRM.DevOnly.PackageExporter; namespace VRM @@ -60,6 +61,9 @@ namespace VRM [MenuItem(DevelopmentMenuPrefix + "/Create UnityPackage", priority = 34)] private static void CreateUnityPackage() => VRMExportUnityPackage.CreateUnityPackageWithoutBuild(); + + [MenuItem(DevelopmentMenuPrefix + "/Export ShaderProps Code", priority = 35)] + private static void ExportShaderPropertyCode() => ShaderPropMenu.PreExport(); #endif } } \ No newline at end of file diff --git a/Assets/VRMShaders/VRM/IO/Editor/ShaderPropMenu.cs b/Assets/VRMShaders/VRM/IO/Editor/ShaderPropMenu.cs index 3a949d10a..059c7fb87 100644 --- a/Assets/VRMShaders/VRM/IO/Editor/ShaderPropMenu.cs +++ b/Assets/VRMShaders/VRM/IO/Editor/ShaderPropMenu.cs @@ -10,9 +10,6 @@ namespace UniGLTF { public static class ShaderPropMenu { -#if VRM_DEVELOP - [MenuItem("VRMShaders/Development/PreExport ShaderProps")] -#endif public static void PreExport() { foreach (var fi in typeof(PreExportShaders).GetFields(