Class OnButtonInput
A configurable event to handle global button input.
Inheritance
object
OnButtonInput
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
public sealed class OnButtonInput : MachineEventUnit<EmptyEventArgs>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventHandler<EmptyEventArgs>
Properties
action
The type of input.
Declaration
[DoNotSerializeAttribute]
public ValueInput action { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
buttonName
The name of the button that received input.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueInput buttonName { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
Definition()
Declaration
protected override void Definition()
Overrides
ShouldTrigger(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, EmptyEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| EmptyEventArgs | args |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Implements
IDisposable