Editor/ShaderGraphPlus/PostProcessingClassInfo.cs

A small struct used by the editor to describe a post processing component for a shader graph. It stores title, category, icon and ordering and provides a validity check.

namespace ShaderGraphPlus;

public struct PostProcessingComponentInfo : IValid
{
	public string ComponentTitle { get; set; }

	public string ComponentCategory { get; set; }

	public string Icon { get; set; }

	public int Order { get; set; }

	public bool IsValid => !string.IsNullOrWhiteSpace( ComponentTitle );

	public PostProcessingComponentInfo( int order )
	{
		ComponentTitle = "";
		ComponentCategory = "";
		Icon = "";
		Order = order;
	}
}