Struct InputActionRuleSingleAxis
Generic Input Action Rule for raising actions based on specific criteria.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public struct InputActionRuleSingleAxis : IInputActionRule<float>
Constructors
InputActionRuleSingleAxis(MixedRealityInputAction, MixedRealityInputAction, Single)
Constructor.
Declaration
public InputActionRuleSingleAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, float criteria)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInputAction | baseAction | The Base Action that the rule will listen to. |
MixedRealityInputAction | ruleAction | The Action to raise if the criteria is met. |
Single | criteria | The criteria to check against for determining if the action should be raised. |
InputActionRuleSingleAxis(MixedRealityInputAction, MixedRealityInputAction, Single)
Constructor.
Declaration
public InputActionRuleSingleAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, float criteria)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInputAction | baseAction | The Base Action that the rule will listen to. |
MixedRealityInputAction | ruleAction | The Action to raise if the criteria is met. |
Single | criteria | The criteria to check against for determining if the action should be raised. |
Properties
BaseAction
Declaration
public MixedRealityInputAction BaseAction { get; }
Property Value
Type | Description |
---|---|
MixedRealityInputAction |
BaseAction
Declaration
public MixedRealityInputAction BaseAction { get; }
Property Value
Type | Description |
---|---|
MixedRealityInputAction |
Criteria
Declaration
public float Criteria { get; }
Property Value
Type | Description |
---|---|
Single |
Criteria
Declaration
public float Criteria { get; }
Property Value
Type | Description |
---|---|
Single |
RuleAction
Declaration
public MixedRealityInputAction RuleAction { get; }
Property Value
Type | Description |
---|---|
MixedRealityInputAction |
RuleAction
Declaration
public MixedRealityInputAction RuleAction { get; }
Property Value
Type | Description |
---|---|
MixedRealityInputAction |