Question Prefab Constructor

The concept behind this component is to have the user make a decision. This component should be attached to the question lesson blueprint. This component handles user interaction with the answers given to the question.

Constructor Properties

Using the properties specified below, the constructor will dynamically generate the Question UI upon initialization.

Property

Type

Description

Text Header Lifetime

Number (float)

If Text Header is enabled, Set Text lifetime.

Header Widget Class

Mages Text Widget

Header widget class for option UI

Header Widget Size

Vector 2D

Size of the Header widget

Max Questions

Number (integer)

Number of maximum permitted questions. For single selection UI set 1

Option List

Array of Options

Designates the different available answers for the question

Option Widget Class

Mages Question Button Widget

The Widget class to use for the buttons

Option Widget Size

Vector 2D

Size of the button widgets

Option Widget Pivot

Vector 2D

Pivot of the button widgets

Submit Widget Class

Mages Button Widget

Button widget class for the submission button

Submit Widget Size

Vector 2D

Size for the submission button

Submit Widget Pivot

Vector 2D

Pivot for the submission button

Shuffle Options

Boolean

Set to true for options shuffling (randomly changes order of the answers)

Reveal Correct Answers

Boolean

Set to true to reveal at the end the correct answers