From 5f873fc89a190017795cb3351ff637ba5de15d30 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Wed, 8 Dec 2021 21:34:20 +0900 Subject: [PATCH] =?UTF-8?q?VRMShaders=20=E3=83=A1=E3=83=8B=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=82=92=E6=B6=88=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM/Editor/VRM.Editor.asmdef | 3 ++- Assets/VRM/Editor/VrmTopMenu.cs | 6 +++++- Assets/VRMShaders/VRM/IO/Editor/ShaderPropMenu.cs | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) 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(