InspectorComment.cs 556 B

12345678910111213141516171819202122232425262728
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace RootMotion
  4. {
  5. /// <summary>
  6. /// Comment attribute for Editor.
  7. /// </summary>
  8. public class InspectorComment : PropertyAttribute
  9. {
  10. public string name;
  11. public string color = "white";
  12. public InspectorComment(string name)
  13. {
  14. this.name = name;
  15. this.color = "white";
  16. }
  17. public InspectorComment(string name, string color)
  18. {
  19. this.name = name;
  20. this.color = color;
  21. }
  22. }
  23. }