Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Generation/Data/DropdownEntry.cs

27 lines
625 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using System;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{
[Serializable]
[GenerationAPI]
internal struct DropdownEntry
{
public int id; // Used to determine what MaterialSlot an entry belongs to
public string displayName;
// In this case, we will handle the actual IDs later
public DropdownEntry(string displayName)
{
this.id = -1;
this.displayName = displayName;
}
internal DropdownEntry(int id, string displayName)
{
this.id = id;
this.displayName = displayName;
}
}
}