Search Results for

    Show / Hide Table of Contents

    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
    System.Object
    ActionUI
    Namespace: Visual_Scripting
    Assembly: Assembly-CSharp.dll
    Syntax
    public class ActionUI : Unit

    Fields

    | Improve this Doc View Source

    actionChoice

    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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    CorrectAction

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Definition()

    Defines the Nodes input, output and value ports

    Declaration
    protected override void Definition()
    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation