BaseInteractiveElement.SetStateAndInvokeEvent 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.
Sets a state to a given state value and invokes an event with associated event data.
public void SetStateAndInvokeEvent (string stateName, int stateValue, UnityEngine.EventSystems.BaseEventData eventData = default);
member this.SetStateAndInvokeEvent : string * int * UnityEngine.EventSystems.BaseEventData -> unit
Public Sub SetStateAndInvokeEvent (stateName As String, stateValue As Integer, Optional eventData As BaseEventData = Nothing)
Parameters
- stateName
- String
The name of the state to set
- stateValue
- Int32
The state value. A value of 0 = set the state off, 1 = set the state on
- eventData
- UnityEngine.EventSystems.BaseEventData
Event data to pass into the event