Editor/ShaderGraphPlus/Nodes/Core/ShaderNode.cs

An abstract editor node class for a ShaderGraphPlus system, extending BaseNodePlus. It defines Title, Subtitle override, an IsDirty flag, and custom DisplayInfo to use Title as the displayed name. It also overrides CreateUI but only calls the base implementation.

File Access
namespace ShaderGraphPlus;

public abstract class ShaderNodePlus : BaseNodePlus
{
	[Hide]
	public virtual string Title => null;

	[JsonIgnore, Hide, Browsable( false )]
	public override string Subtitle => "";

	[Hide]
	public bool IsDirty = false;

	[JsonIgnore, Hide, Browsable( false )]
	public override DisplayInfo DisplayInfo
	{
		get
		{
			var info = base.DisplayInfo;
			info.Name = Title ?? info.Name;
			return info;
		}
	}

	public override NodeUI CreateUI( GraphView view )
	{
		return base.CreateUI( view );
	}
}