study/first_study/Library/PackageCache/com.unity.render-pipelines.universal@d10049dfa479/Editor/ShaderGUI/ShadergraphSpriteGUI.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

31 lines
868 B
C#

using UnityEngine;
namespace UnityEditor
{
// Used for ShaderGraph Sprite shaders
class ShaderGraphSpriteGUI : BaseShaderGUI
{
protected override uint materialFilter => uint.MaxValue & ~(uint)Expandable.SurfaceOptions;
MaterialProperty[] properties;
// collect properties from the material properties
public override void FindProperties(MaterialProperty[] properties)
{
// save off the list of all properties for shadergraph
this.properties = properties;
var material = materialEditor?.target as Material;
if (material == null)
return;
base.FindProperties(properties);
}
public override void DrawSurfaceInputs(Material material)
{
DrawShaderGraphProperties(material, properties);
}
}
}