|SpriteURL|{{RootFieldType|FieldDrive`1|[[Type:Uri|Uri]]}}|TypeAdv5=true| The sprite url.
|SpriteURL|{{RootFieldType|FieldDrive`1|[[Type:Uri|Uri]]}}|TypeAdv5=true| The sprite url.
|SpriteTint|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv6=true| The sprite tint.
|SpriteTint|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv6=true| The sprite tint.
|DefaultOption|{{RootFieldType|(nested)|[[#Option|Option]]<T>}}|TypeAdv7=true| The option to set <code>Label</code>, <code>Color</code>, and <code>Sprite</code> to when <code>Reference</code> doesn't match any <code>ReferenceTarget</code>s under the list of <code>Options</code>.
|DefaultOption|{{RootFieldType|(nested)|[[#Option|ValueOptionDescriptionDriver`1.Option]]<T>}}|TypeAdv7=true| The option to set <code>Label</code>, <code>Color</code>, and <code>Sprite</code> to when <code>Reference</code> doesn't match any <code>ReferenceTarget</code>s under the list of <code>Options</code>.
|Options|{{RootFieldType|SyncList`1|[[#Option|Option]]<T>}}|TypeAdv8=true| The list to search for a <code>ReferenceTarget</code> that matches <code>Value</code>. once a match is found, the option's <code>Label</code>, <code>Color</code>, and <code>Sprite</code> is used to drive this section's drive targets of <code>Label</code>, <code>Color</code>, and <code>Sprite</code>.
|Options|{{RootFieldType|SyncList`1|[[#Option|ValueOptionDescriptionDriver`1.Option]]<T>}}|TypeAdv8=true| The list to search for a <code>ReferenceTarget</code> that matches <code>Value</code>. once a match is found, the option's <code>Label</code>, <code>Color</code>, and <code>Sprite</code> is used to drive this section's drive targets of <code>Label</code>, <code>Color</code>, and <code>Sprite</code>.
|SpriteTintBase|ColorX| Tints the entire sprite with a ColorX.
|SpriteTintBase|ColorX| Tints the entire sprite with a ColorX.
}}
}}
Latest revision as of 06:05, 17 March 2025
Component image
Value Option Description Driver`1 component as seen in the Scene Inspector
The ValueOptionDescriptionDriver component is used primarily to drive the parts that make up a Context Menu Item Source. This component along with ContextMenuItemSource is used in context menus for toggles where the toggle controls a value.
The list to search for a ReferenceTarget that matches Value. 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.
This component can be more efficient than using a bunch of Value Equality Drivers and generating a number based on such, or using ProtoFlux for a context menu.