Düzenle

Aracılığıyla paylaş


BaseInteractiveElement.SetStateAndInvokeEvent Method

Definition

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

Applies to