WooshiiDev / WooshiiAttributes

A growing collection of flexible, powerful Unity attributes
MIT License
36 stars 3 forks source link

Attribute for grouping collections efficiently. #5

Open WooshiiDev opened 3 years ago

WooshiiDev commented 3 years ago

Would be nice to have an attribute that displays multiple tabs based on grouping collections.

Example:

public enum EnumExample {A, B, C}

public class ExampleClass
{
   public string stringExample;
   public EnumExample enumExample;
}

[Category("stringExample", SortType.Alphabetical)]
public ExampleClass exampleClassOne;

[Category("enumExample", SortType.EnumIndex)]
public ExampleClass exampleClassOne;

This would display a set of selectable buttons displaying the elements that belong in each category. For strings this may take some tweaking and refining.

Will follow up with some example sort types.