Class OnMouseInput
A configurable event to handle global mouse input.
Inheritance
OnMouseInput
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Events/Input")]
public sealed class OnMouseInput : MachineEventUnit<EmptyEventArgs>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventHandler<EmptyEventArgs>, IMouseEventUnit
Properties
action
The type of input.
Declaration
[DoNotSerialize]
public ValueInput action { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
button
The mouse button that received input.
Declaration
[DoNotSerialize]
public ValueInput button { 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 |