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.

InspectableAttribute.cs 810B

123456789101112131415161718192021222324
  1. using System;
  2. namespace UnityEditor.ShaderGraph.Drawing
  3. {
  4. [AttributeUsage(AttributeTargets.Property)]
  5. public class InspectableAttribute : Attribute
  6. {
  7. // String value to use in the Property name TextLabel
  8. public string labelName { get; private set; }
  9. // The default value of this property
  10. public object defaultValue { get; private set; }
  11. // String value to supply if you wish to use a custom style when drawing this property
  12. public string customStyleName { get; private set; }
  13. public InspectableAttribute(string labelName, object defaultValue, string customStyleName = "")
  14. {
  15. this.labelName = labelName;
  16. this.defaultValue = defaultValue;
  17. this.customStyleName = customStyleName;
  18. }
  19. }
  20. }