IconFoldoutGroupAttribute.cs 632 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Sirenix.OdinInspector;
  3. namespace KairoEngine.Core
  4. {
  5. public class IconFoldoutGroupAttribute : PropertyGroupAttribute
  6. {
  7. public string iconPath;
  8. public string text;
  9. public IconFoldoutGroupAttribute(string path) : base(path) { }
  10. public IconFoldoutGroupAttribute(string path, string iconPath) : base(path)
  11. {
  12. this.text = path;
  13. this.iconPath = iconPath;
  14. }
  15. protected override void CombineValuesWith(PropertyGroupAttribute other)
  16. {
  17. var otherAttr = (IconFoldoutGroupAttribute)other;
  18. }
  19. }
  20. }