StyledCategory.cs 571 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. namespace Boxophobic.StyledGUI
  3. {
  4. public class StyledCategory : PropertyAttribute
  5. {
  6. public string category;
  7. public int top;
  8. public int down;
  9. public StyledCategory(string category)
  10. {
  11. this.category = category;
  12. this.top = 10;
  13. this.down = 10;
  14. }
  15. public StyledCategory(string category, int spaceTop, int spaceBottom)
  16. {
  17. this.category = category;
  18. this.top = spaceTop;
  19. this.down = spaceBottom;
  20. }
  21. }
  22. }