From e856b0b9396025c3352054e65b090421ab2e3b40 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Sat, 14 Nov 2026 21:01:13 +0900 Subject: [PATCH] fix: support Unity 6.6+ with ShaderGraph package --- .../BuiltInUIEffectSubTarget.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Packages/src/Samples~/ShaderGraph Support (Unity 6 BuiltIn)~/BuiltInUIEffectSubTarget.cs b/Packages/src/Samples~/ShaderGraph Support (Unity 6 BuiltIn)~/BuiltInUIEffectSubTarget.cs index 107e5f8..4a4b664 100644 --- a/Packages/src/Samples~/ShaderGraph Support (Unity 6 BuiltIn)~/BuiltInUIEffectSubTarget.cs +++ b/Packages/src/Samples~/ShaderGraph Support (Unity 6 BuiltIn)~/BuiltInUIEffectSubTarget.cs @@ -170,7 +170,12 @@ namespace UnityEditor.Rendering.BuiltIn.ShaderGraph BlockFields.SurfaceDescription.Alpha, BlockFields.SurfaceDescription.AlphaClipThreshold }; + +#if UNITY_6000_6_OR_NEWER + ProjectWindowUtil.StartNameEditingIfProjectWindowExists(EntityId.None, graphItem, name, null, null); +#else ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, graphItem, name, null, null); +#endif } } }