eventData | Current event data. |
Called by the EventSystem when the object associated with this EventTrigger is updated.
#pragma strict public class UpdateSelectedExample extends MonoBehaviour { public function OnUpdateSelected(data: BaseEventData) { Debug.Log("OnUpdateSelected called."); } }
using UnityEngine; using UnityEngine.EventSystems;
public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler { public void OnUpdateSelected(BaseEventData data) { Debug.Log("OnUpdateSelected called."); } }
Did you find this page useful? Please give it a rating: