On Mouse Up#
Description#
Executed when the mouse button is released after being pressed over the target collider, regardless of where the cursor is
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("On Mouse Up")]
[Image(typeof(IconMouse), ColorTheme.Type.Blue, typeof(BadgeArrowUp))]
[Description("Executed when the mouse button is released after being pressed over the target collider, regardless of where the cursor is")]
[Category("Input/Cursor/On Mouse Up")]
[Keywords("Click", "Release", "Collider", "Cursor", "Pick", "Touch")]
[Serializable]
public class TriggerCoreMouseUp : TriggerHandleSourceBase<HandleOnMouseUp>
{
// PROPERTIES: ----------------------------------------------------------------------------
protected override string GetTitle(GameObject source) => $"{this.SourceName} Mouse Up";
// OVERRIDE METHODS: ----------------------------------------------------------------------
protected override void OnTrigger(GameObject target)
{
using Args args = Args.Get(this.Component, target);
this.Run(args);
}
}
}