Class ActionUI
Implements the UI questionnaire functionality of TrainAR, therefore it triggers and checks against UI questions like text input fields, questionnaires, and question lists.
Inheritance
Namespace: Visual_Scripting
Assembly: Assembly-CSharp.dll
Syntax
public class ActionUI : Unit
Fields
| Improve this Doc View SourceactionChoice
What type of question is triggered by this node.
Declaration
public ActionUI.TrainARUIActionChoices actionChoice
Field Value
Type | Description |
---|---|
ActionUI.TrainARUIActionChoices | Set in node in the editor |
correctAnswers
The amount of correct answers.
Declaration
public int correctAnswers
Field Value
Type | Description |
---|---|
System.Int32 | Set in node in the editor. Default is 2. |
wrongAnswers
The amount of wrong answers.
Declaration
public int wrongAnswers
Field Value
Type | Description |
---|---|
System.Int32 | Set in node in the editor. Default is 2. |
Properties
| Improve this Doc View SourceCorrectAction
The Output port of the Unity that is triggered when the users interaction was CORRECT.
Declaration
public List<ControlOutput> CorrectAction { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ControlOutput> | Set in node in the editor. |
CorrectAnswers
The Texts for the correct answers for this step.
Declaration
public List<ValueInput> CorrectAnswers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ValueInput> | Set in node in the editor. |
CorrectAnswersFeedback
The Texts for the correct answers for this step.
Declaration
public List<ValueInput> CorrectAnswersFeedback { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.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.
Declaration
public GraphReference graphReference { get; }
Property Value
Type | Description |
---|---|
GraphReference | Set in node in the editor. |
IncorrectAction
The Output port of the Unity that is triggered when the users interaction was INCORRECT.
Declaration
public List<ControlOutput> IncorrectAction { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ControlOutput> | Set in node in the editor. |
InputFlow
The Input port of the Unit that triggers the internal logic.
Declaration
public ControlInput InputFlow { get; }
Property Value
Type | Description |
---|---|
ControlInput | Set in node in the editor. |
Question
The Text for the question for this step.
Declaration
public ValueInput Question { get; }
Property Value
Type | Description |
---|---|
ValueInput | Set in node in the editor. |
WrongAnswers
The Texts for the wrong answers for this step.
Declaration
public List<ValueInput> WrongAnswers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ValueInput> | Set in node in the editor. |
WrongAnswersFeedback
The Texts for the wrong answers for this step.
Declaration
public List<ValueInput> WrongAnswersFeedback { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ValueInput> | Set in node in the editor. |
Methods
| Improve this Doc View SourceDefinition()
Defines the Nodes input, output and value ports
Declaration
protected override void Definition()