using System; using UnityEngine.UI; namespace Unity.VisualScripting { /// /// Called when a user clicks the button and releases it. /// [UnitCategory("Events/GUI")] [TypeIcon(typeof(Button))] [UnitOrder(1)] public sealed class OnButtonClick : GameObjectEventUnit { protected override string hookName => EventHooks.OnButtonClick; public override Type MessageListenerType => typeof(UnityOnButtonClickMessageListener); } }