Class OnKeyboardInput
A configurable event to handle global keyboard input.
Inheritance
OnKeyboardInput
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Input")]
public sealed class OnKeyboardInput : MachineEventUnit<EmptyEventArgs>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventHandler<EmptyEventArgs>
Properties
action
The type of input.
Declaration
[DoNotSerialize]
public ValueInput action { get; }
Property Value
Type | Description |
---|---|
ValueInput |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.MachineEventUnit<Unity.VisualScripting.EmptyEventArgs>.hookName
key
The key that received input.
Declaration
[DoNotSerialize]
public ValueInput key { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.Definition()
ShouldTrigger(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, EmptyEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
EmptyEventArgs | args |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.ShouldTrigger(Unity.VisualScripting.Flow, Unity.VisualScripting.EmptyEventArgs)