# Dynamic Stepper UI

The **Dynamic Stepper UI** provides a circular value selection, automatically cycling back to the first option after the last one is reached. Selection can be controlled using Button components or via Instructions.

<figure><img src="https://348920791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeQ7CIxHuad77enwt80mG%2Fuploads%2F12MOxEZJ22Bk559YSn9Y%2FDynamicStepperUIComponent.PNG?alt=media&#x26;token=083ae2dc-c3aa-4807-af5c-62a5d76a3766" alt="" width="464"><figcaption></figcaption></figure>

<table><thead><tr><th width="235">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Target</strong></td><td>A game object that will be passed onto the 'On Selection Change' instructions as the target.</td></tr><tr><td><strong>Text Current Number</strong></td><td>Reference to a Text or Text Mesh Pro component responsible for displaying the current position number of the selected value. It is optional.</td></tr><tr><td><strong>Text Total Number</strong></td><td>Reference to a Text or Text Mesh Pro component responsible for displaying the total number of values. It is optional.</td></tr><tr><td><strong>Button Next</strong></td><td>Reference to a button component responsible for selecting the next value from the currently selected value. It is optional.</td></tr><tr><td><strong>Button Prev</strong></td><td>Reference to a button component responsible for selecting the previous value from the currently selected value. It is optional.</td></tr><tr><td><strong>Button First</strong></td><td>Reference to a button component responsible for selecting the first value. It is optional.</td></tr><tr><td><strong>Button Last</strong></td><td>Reference to a button component responsible for selecting the last value. It is optional.</td></tr><tr><td><strong>Value List</strong></td><td>The Value List containing a collection of values to be iterated through by the Dynamic Stepper UI.</td></tr><tr><td><strong>Initial Selected Index</strong></td><td>An index position of the value that will sets as the initial selection.</td></tr><tr><td><strong>Notify Selection Change</strong></td><td>Whether to initially run the instructions within the 'On Selection Change' on start.</td></tr><tr><td><strong>Cache Selection</strong></td><td>An options to whether save the selection or not after fetching the Value List.</td></tr><tr><td>        <strong>Forget</strong></td><td>Always lose the selection after fetching the Value List.</td></tr><tr><td>        <strong>Preserve Index</strong></td><td>Remember the selected index after fetching the Value List, if it still exists. Cache index will persist until selection is changed.</td></tr><tr><td>        <strong>Preserve Value</strong></td><td>Remember the selected value after fetching the Value List, if it still exists. Cache value will persist until selection is changed.</td></tr><tr><td><strong>Selection When Lost</strong></td><td>An options for what to select when the selection is lost after fetching the Value List. This won't notify On Selection Change.</td></tr><tr><td><strong>On Selection Change</strong></td><td>List of instructions that will be executed when the value selection is changed.</td></tr></tbody></table>
