OnMouseUp is called when the user has released the mouse button.
// Register when mouse dragging has ended. OnMouseUp is called // when the mouse button is released. See Also: OnMouseDown, OnMouseDrag. function OnMouseUp () { Debug.Log("Drag ended!"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnMouseUp() { Debug.Log("Drag ended!"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnMouseUp() as void: Debug.Log('Drag ended!')