Decorator Attributes

UltEvents includes several attributes which can be used in code to alter the way things are displayed in Unity.

Favourite

The [UltEvents.Favourite] attribute can be placed on frequently used members to display them in a Favourites section at the top of the member selection list.

[Favourite]
public void ThisIsUsedFrequently() { }

Inheriting from a class with favourites will include them in the favourites section of any derived classes.

You can also specify a group to put the member in a sub-menu within the Favourites section.

[Favourite("My Favourites Group/With a Sub-Group")]
public void ThisIsUsedSlightlyLessFrequently() { }

Hide

The [UltEvents.Hide] attribute simply prevents a member from being shown in the selection menu.

[Hide]
public void DontCallThisFromEvents() { }

If an event was already referencing that member, this won't automatically remove it, all it does it prevent it from being selected again.