Table of Contents

Class ActionFork

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.

This is the fork version of the action node. Therefore there are multiple correct answers and the stateflow enters a fork depending on which one is selected.

public class ActionFork : Unit
Inheritance
object
ActionFork

Fields

actionChoice

What type of actions are accepted by this node.

public ActionFork.TrainARActionChoices actionChoice

Field Value

ActionFork.TrainARActionChoices

Set in node in the editor. Default is Interaction.

actionCount

How many actions are in this node.

public int actionCount

Field Value

int

Set in node in the editor.Default is 1.

Properties

ARCombinableName1s

The Name of the first correct interactable for this step.

public List<ValueInput> ARCombinableName1s { get; }

Property Value

List<ValueInput>

Set in node in the editor.

ARCombinableName2s

The Name of the second correct interactable for this step.

public List<ValueInput> ARCombinableName2s { get; }

Property Value

List<ValueInput>

Set in node in the editor.

ARInteractableNames

The Name of the correct interactable for this step.

public List<ValueInput> ARInteractableNames { get; }

Property Value

List<ValueInput>

Set in node in the editor.

CorrectActions

The Output port of the Unity that is triggered when the users interaction was CORRECT.

public List<ControlOutput> CorrectActions { get; }

Property Value

List<ControlOutput>

Set in node in the editor.

CorrectParameterTexts

The correct parameter for the custom event.

public List<ValueInput> CorrectParameterTexts { get; }

Property Value

List<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()