Class ActionUI
- Namespace
- Visual_Scripting
Implements the UI questionnaire functionality of TrainAR, therefore it triggers and checks against UI questions like text input fields, questionnaires, and question lists.
public class ActionUI : Unit
- Inheritance
-
objectActionUI
Fields
actionChoice
What type of question is triggered by this node.
public ActionUI.TrainARUIActionChoices actionChoice
Field Value
- ActionUI.TrainARUIActionChoices
Set in node in the editor
correctAnswers
The amount of correct answers.
public int correctAnswers
Field Value
- int
Set in node in the editor. Default is 2.
wrongAnswers
The amount of wrong answers.
public int wrongAnswers
Field Value
- int
Set in node in the editor. Default is 2.
Properties
CorrectAction
The Output port of the Unity that is triggered when the users interaction was CORRECT.
public List<ControlOutput> CorrectAction { get; }
Property Value
- List<ControlOutput>
Set in node in the editor.
CorrectAnswers
The Texts for the correct answers for this step.
public List<ValueInput> CorrectAnswers { get; }
Property Value
- List<ValueInput>
Set in node in the editor.
CorrectAnswersFeedback
The Texts for the correct answers for this step.
public List<ValueInput> CorrectAnswersFeedback { 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 List<ControlOutput> IncorrectAction { get; }
Property Value
- List<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.
Question
The Text for the question for this step.
public ValueInput Question { get; }
Property Value
- ValueInput
Set in node in the editor.
WrongAnswers
The Texts for the wrong answers for this step.
public List<ValueInput> WrongAnswers { get; }
Property Value
- List<ValueInput>
Set in node in the editor.
WrongAnswersFeedback
The Texts for the wrong answers for this step.
public List<ValueInput> WrongAnswersFeedback { get; }
Property Value
- List<ValueInput>
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()