Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

BlackboardInputInfo.cs 767B

12345678910111213141516171819202122
  1. using System;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. class BlackboardInputInfo : Attribute
  6. {
  7. public float priority;
  8. public string name;
  9. /// <summary>
  10. /// Provide additional information to provide the blackboard for order and name of the ShaderInput item.
  11. /// </summary>
  12. /// <param name="priority">Priority of the item, higher values will result in lower positions in the menu.</param>
  13. /// <param name="name">Name of the item. If null, the class name of the item will be used instead.</param>
  14. public BlackboardInputInfo(float priority, string name = null)
  15. {
  16. this.priority = priority;
  17. this.name = name;
  18. }
  19. }
  20. }