InteractableToggleCollection.SetSelection(Int32, Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the selection of a an element in the toggle collection based on index.
<param name="index">Index of an element in ToggleList</param><param name="force">Force selection set</param><param name="fireOnClick">The manual trigger of the OnClick event. OnClick event is manually triggered when the CurrentIndex is updated via script or inspector</param>public void SetSelection(int index, bool force = false, bool fireOnClick = false);
member this.SetSelection : int * bool * bool -> unit
Public Sub SetSelection (index As Integer, Optional force As Boolean = false, Optional fireOnClick As Boolean = false)
Parameters
- index
- Int32
- force
- Boolean
- fireOnClick
- Boolean