This page contains changes which are not marked for translation.
Component image
Reference Option Description Driver`1 component as seen in the Scene Inspector
Reference Option Description Driver is a component that is used primarily to drive the description of a Context Menu Item Source. This component along with ContextMenuItemSource is used in context menus for toggles where the toggle controls a reference like a slot or object.
The list to search for a ReferenceTarget that matches Reference. once a match is found, the option's Label, Color, and Sprite is used to drive this section's drive targets of Label, Color, and Sprite.
The sprite to use if ReferenceTarget matches Reference
Usage
this component can be more efficient than using a bunch of reference equality driver and generating a number based on such, or using flux for a context menu.
Examples
This is useful for managing toggles where you want to switch things like music and drive the description based on which music asset you chose in your context menu.