Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Selectable.OnPointerUp

Switch to Manual
public function OnPointerUp(eventData: EventSystems.PointerEventData): void;

Parameters

eventData The EventData usually sent by the EventSystem.

Description

Evaluate eventData and transition to appropriate state.

New state will be based upon current hover state.

#pragma strict
// Required when using Event data.
//Do this when the mouse click on this selectable UI object is released.
public function OnPointerUp(eventData) {
	Debug.Log("The mouse click was released");
}