From a6604debd3d7869193ae2fe070317a0a3797604c Mon Sep 17 00:00:00 2001 From: Harrison Hough Date: Fri, 12 Jan 2024 11:08:57 +0200 Subject: [PATCH] chore: update shader override name --- Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.cs | 6 +++--- .../Core/Scripts/UI/CustomEditors/AvatarConfigEditor.uxml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.cs b/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.cs index 9333e039..464b9428 100644 --- a/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.cs +++ b/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.cs @@ -134,7 +134,7 @@ private void SetupCompressionPackages() useDracoCompression.SetValueWithoutNotify(ModuleInstaller.IsModuleInstalled(ModuleList.DracoCompression.name)); useMeshOptCompression.SetValueWithoutNotify(PackageManagerHelper.IsPackageInstalled(MESH_OPT_PACKAGE_NAME)); }); - + useDracoCompression.RegisterValueChangedCallback(x => { avatarConfigTarget.UseDracoCompression = x.newValue; @@ -160,7 +160,7 @@ private void SetupCompressionPackages() Save(); } ); - + useMeshOptCompression.RegisterValueChangedCallback(x => { avatarConfigTarget.UseMeshOptCompression = x.newValue; @@ -245,7 +245,7 @@ void BindItem(VisualElement e, int i) private void SetupShader() { - var shader = root.Q("Shader"); + var shader = root.Q("ShaderOverride"); shader.SetValueWithoutNotify(avatarConfigTarget.Shader); var shaderPropertiesContainer = root.Q("ShaderProperties"); diff --git a/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.uxml b/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.uxml index 38e8755d..46f8fc32 100644 --- a/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.uxml +++ b/Editor/Core/Scripts/UI/CustomEditors/AvatarConfigEditor.uxml @@ -8,7 +8,7 @@ - +