Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

ScrollRect.OnEndDrag

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

Parameters

Description

Handling for when the content has finished being dragged.

#pragma strict
// Required when using event data
//Do this when the user stops dragging this UI Element.
public function OnEndDrag(data) {
	Debug.Log("Stopped dragging " + this.name + "!");
}