You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
625 B
26 lines
625 B
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; |
|
} |
|
} |
|
}
|
|
|