No Description
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.

DropdownEntry.cs 625B

1234567891011121314151617181920212223242526
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.ShaderGraph
  4. {
  5. [Serializable]
  6. [GenerationAPI]
  7. internal struct DropdownEntry
  8. {
  9. public int id; // Used to determine what MaterialSlot an entry belongs to
  10. public string displayName;
  11. // In this case, we will handle the actual IDs later
  12. public DropdownEntry(string displayName)
  13. {
  14. this.id = -1;
  15. this.displayName = displayName;
  16. }
  17. internal DropdownEntry(int id, string displayName)
  18. {
  19. this.id = id;
  20. this.displayName = displayName;
  21. }
  22. }
  23. }