Editor/ShaderGraphPlus/DynamicComboWrapper.cs

A small internal wrapper class used in the editor, holding a combo name and an integer value for use with OnAttribute (likely to pass a DynamicCombo selection). It stores ComboName and Value and exposes them as read-only properties set via the constructor.

namespace ShaderGraphPlus.Internal;

/// <summary>
/// Wrapper to contain a DynamicCombo for use with OnAttribute.
/// </summary>
internal class DynamicComboWrapper
{
	public string ComboName { get; private set; }
	public int Value { get; private set; }

	public DynamicComboWrapper( string comboName, int value )
	{
		ComboName = comboName;
		Value = value;
	}
}