暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

KeywordEntry.cs 780B

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