From 2fc73b4884c7e519e58acde0820216361f5fcf49 Mon Sep 17 00:00:00 2001 From: Kenny Tan Date: Tue, 7 Sep 2021 17:57:17 +0800 Subject: [PATCH] update sub targets api --- .../ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs | 4 ++-- .../2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs | 4 ++-- .../2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs index ac30e0c207c..f8a3c9f5257 100644 --- a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs @@ -1,7 +1,7 @@ using System; using System.Linq; using UnityEditor.ShaderGraph; -using UnityEditor.UIElements; + namespace UnityEditor.Rendering.Universal.ShaderGraph { @@ -64,7 +64,7 @@ public override void GetActiveBlocks(ref TargetActiveBlockContext context) public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Action onChange, Action registerUndo) { - context.AddProperty("Blending Mode", new EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => + context.AddProperty("Blending Mode", new UnityEngine.UIElements.EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => { if (Equals(target.alphaMode, evt.newValue)) return; diff --git a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs index 55c571619c1..fe7a7309134 100644 --- a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using UnityEditor.ShaderGraph; using UnityEditor.ShaderGraph.Legacy; -using UnityEditor.UIElements; + namespace UnityEditor.Rendering.Universal.ShaderGraph { @@ -66,7 +66,7 @@ public override void GetActiveBlocks(ref TargetActiveBlockContext context) public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Action onChange, Action registerUndo) { - context.AddProperty("Blending Mode", new EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => + context.AddProperty("Blending Mode", new UnityEngine.UIElements.EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => { if (Equals(target.alphaMode, evt.newValue)) return; diff --git a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs index 72aa82744c8..adfe44a12da 100644 --- a/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using UnityEditor.ShaderGraph; using UnityEditor.ShaderGraph.Legacy; -using UnityEditor.UIElements; + namespace UnityEditor.Rendering.Universal.ShaderGraph { @@ -64,7 +64,7 @@ public override void GetActiveBlocks(ref TargetActiveBlockContext context) public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Action onChange, Action registerUndo) { - context.AddProperty("Blending Mode", new EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => + context.AddProperty("Blending Mode", new UnityEngine.UIElements.EnumField(AlphaMode.Alpha) { value = target.alphaMode }, (evt) => { if (Equals(target.alphaMode, evt.newValue)) return;