From f69e60e5f0e06667bde757975ee75a0fdb8c1145 Mon Sep 17 00:00:00 2001 From: Isamu Mogi Date: Thu, 26 Dec 2024 21:28:07 +0900 Subject: [PATCH] =?UTF-8?q?MToon10Meta.URPUnityShaderName=E3=81=8CObsolete?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E3=82=92=E5=87=BA=E3=81=99=E3=81=AE=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MToon10Meta.URPUnityShaderNameがObsoleteになり、次のような警告が出ていました。 ``` Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs(30,29): warning CS0618: 'MToon10Meta.URPUnityShaderName' is obsolete: 'Use UnityUrpShaderName instead' ``` Obsoleteになった際のコミットはこちらです: https://github.com/vrm-c/UniVRM/pull/2484/commits/cce076d324ca35d69cac2423a10e98843d9315dc 代わりに、同内容の推奨されている定数 MToon10Meta.UnityUrpShaderName を使うようにしました。 --- .../URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs b/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs index 0c5696704..d55eb9588 100644 --- a/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs +++ b/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs @@ -27,7 +27,7 @@ namespace UniVRM10 // use material.name, because material name may renamed in GltfParser. matDesc = new MaterialDescriptor( m.name, - Shader.Find(MToon10Meta.URPUnityShaderName), + Shader.Find(MToon10Meta.UnityUrpShaderName), null, Vrm10MToonTextureImporter.EnumerateAllTextures(data, m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.Item2.Item2), BuiltInVrm10MToonMaterialImporter.TryGetAllFloats(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value),