Class WhenInputActionBuilderExtensions
- Namespace
- LunyScript.Api /
- Assembly
- LunyScript.dll
public static class WhenInputActionBuilderExtensions
Expand Details ...
- Inheritance
-
ObjectWhenInputActionBuilderExtensions
Methods
Continuing(WhenInputActionBuilder, params ActionBlock[])
Runs repeatedly every frame, before frame processing begins (Heartbeat, FixedUpdate), until the input action ended. Use this for continuous processing of axis and analog input values, or button holds.
public static WhenInputActionBuilder Continuing(this WhenInputActionBuilder b, params ActionBlock[] performingBlocks)
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
performingBlocks |
Returns
Ended(WhenInputActionBuilder, params ActionBlock[])
Runs when an input action ended, even when it merely Started but never Performed.
public static WhenInputActionBuilder Ended(this WhenInputActionBuilder b, params ActionBlock[] canceledBlocks)
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
canceledBlocks |
Returns
ForUser(WhenInputActionBuilder, String)
Specifies that event should only run when sent from a device paired with the named input user.
public static WhenInputActionBuilder ForUser(this WhenInputActionBuilder b, String userName)
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
userName |
Returns
Performed(WhenInputActionBuilder, params ActionBlock[])
Runs when the input action is performed. When interactions are used, it runs when the interactions (hold, slow tap) are satisfied.
public static WhenInputActionBuilder Performed(this WhenInputActionBuilder b, params ActionBlock[] performedBlocks)
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
performedBlocks |
Returns
Started(WhenInputActionBuilder, params ActionBlock[])
Runs when the input action has started processing. All input actions run Start event. For unconditional actions it is the same as Performed event.
public static WhenInputActionBuilder Started(this WhenInputActionBuilder b, params ActionBlock[] startedBlocks)
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
startedBlocks |
Returns
Remarks
For "hold" or "slow tap" interactions the Started event runs with the beginning of the hold or tap. The Performed even will be delayed accordingly.