InspectorNoteAttribute.cs 626 B

1234567891011121314151617181920212223242526272829303132333435
  1. using UnityEngine;
  2. /*
  3. -----------------------
  4. InspectorNoteAttribute()
  5. -----------------------
  6. */
  7. public class InspectorNoteAttribute : PropertyAttribute
  8. {
  9. public readonly string header;
  10. public readonly string message;
  11. public InspectorNoteAttribute(string header, string message = "")
  12. {
  13. this.header = header;
  14. this.message = message;
  15. }
  16. }
  17. /*
  18. -----------------------
  19. InspectorCommentAttribute()
  20. -----------------------
  21. */
  22. public class InspectorCommentAttribute : PropertyAttribute {
  23. public readonly string message;
  24. public InspectorCommentAttribute( string message = "" ) {
  25. this.message = message;
  26. }
  27. }