Class Action
- Namespace
- Visual_Scripting
Implements the "Interacting", "Combining" and "Custom" Action functionality of the TrainAR Framework, therefore it checks if the user triggered the "Interact", "Combine" Buttons or triggered a CustomAction through scripts and allows to check this against the stored state in the visual statemachine.
public class Action : Unit
- Inheritance
-
objectAction
Fields
actionChoice
What type of actions are accepted by this node.
public Action.TrainARActionChoices actionChoice
Field Value
- Action.TrainARActionChoices
Set in node in the editor. Default is Interaction.
Properties
ARCombinableName1
The Name of the first correct interactable for this step.
public ValueInput ARCombinableName1 { get; }
Property Value
- ValueInput
Set in node in the editor.
ARCombinableName2
The Name of the second correct interactable for this step.
public ValueInput ARCombinableName2 { get; }
Property Value
- ValueInput
Set in node in the editor.
ARInteractableName
The Name of the correct interactable for this step.
public ValueInput ARInteractableName { get; }
Property Value
- ValueInput
Set in node in the editor.
CorrectAction
The Output port of the Unity that is triggered when the users interaction was CORRECT.
public ControlOutput CorrectAction { get; }
Property Value
- ControlOutput
Set in node in the editor.
CorrectParameterText
The correct parameter for the custom event.
public ValueInput CorrectParameterText { get; }
Property Value
- ValueInput
Set in node in the editor.
IncorrectAction
The Output port of the Unity that is triggered when the users interaction was INCORRECT.
public ControlOutput IncorrectAction { get; }
Property Value
- ControlOutput
Set in node in the editor.
InputFlow
The Input port of the Unit that triggers the internal logic.
public ControlInput InputFlow { get; }
Property Value
- ControlInput
Set in node in the editor.
graphReference
The Graphreference stores the current position in the flow graph to revisit it on Event/Action triggers.
public GraphReference graphReference { get; }
Property Value
- GraphReference
Set in node in the editor.
Methods
Definition()
Defines the Nodes input, output and value ports.
protected override void Definition()