Quiz Nodes
These nodes allow to manage the quiz system and expose quiz data.
Expose Nodes
Expose Quiz Answer Node
🔍
Reflectis>Expose>Reflectis: Expose Quiz Answer
This Node exposes the data of a Quiz Answer.
-
⬇️ Input:
- Answer (
QuizAnswer), reference to the Quiz Answer.
- Answer (
-
⬆️ Output:
- TitleLabel (
string), the label of the answer title - TitleValue (
string), the value of the answer title - HiddenTitleLabel (
string), the label of the hidden title - HiddenTitleValue (
string), the value of the hidden title - Image (
Sprite), the image associated with the answer - CorrectAnswer (
bool), whether this is the correct answer - ScoreIfGood (
float), the score awarded if selected correctly - ScoreIfBad (
float), the score awarded if selected incorrectly - FeedbackLabel (
string), the label of the feedback text - FeedbackValue (
string), the value of the feedback text - IsSelected (
bool), whether the answer is currently selected - IsCorrectSelection (
bool), whether the current selection is correct - Score (
float), the score for this answer.
- TitleLabel (
Expose Quiz Instance Node
🔍
Reflectis>Expose>Reflectis: Expose Quiz Instance
This Node exposes the data of a Quiz Instance.
-
⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder.
- Quiz (
-
⬆️ Output:
- GameObjectReference (
GameObject), reference to the quiz GameObject - HeaderLabel (
string), the label of the quiz header - HeaderValue (
string), the value of the quiz header - TitleLabel (
string), the label of the quiz title - TitleValue (
string), the value of the quiz title - DescriptionLabel (
string), the label of the quiz description - DescriptionValue (
string), the value of the quiz description - QuestionLabel (
string), the label of the quiz question - QuestionValue (
string), the value of the quiz question - IsMultipleChoice (
bool), whether the quiz allows multiple selections - Answers (
IReadOnlyList<QuizAnswer>), the list of quiz answers - AnswersCount (
int), the number of answers - ScoreIfAllGood (
float), the total score if all answers are correct - ScoreIfAllBad (
float), the total score if all answers are incorrect - CorrectAnswers (
int), the number of correct answers - Score (
float), the current total score.
- GameObjectReference (
Flow Nodes
Continue Node
🔍
Reflectis>Flow>Reflectis Quiz: Continue
This Node triggers the continue action on a quiz, advancing to the next step.
- ⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder. If left empty, it defaults to the component on the same GameObject.
- Quiz (
Edit Node
🔍
Reflectis>Flow>Reflectis Quiz: Edit
This Node sets the quiz into edit mode, allowing the user to change answers.
- ⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder. If left empty, it defaults to the component on the same GameObject.
- Quiz (
Finish Node
🔍
Reflectis>Flow>Reflectis Quiz: Finish
This Node finishes the quiz.
- ⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder. If left empty, it defaults to the component on the same GameObject.
- Quiz (
Go To Results Node
🔍
Reflectis>Flow>Reflectis Quiz: Go To Results
This Node transitions the quiz to the results screen with configurable buttons.
- ⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder. If left empty, it defaults to the component on the same GameObject - ShowEditButton (
bool), a boolean to show or hide the edit button (default:false) - ShowResetButton (
bool), a boolean to show or hide the reset button (default:false) - ShowContinueButton (
bool), a boolean to show or hide the continue button (default:false).
- Quiz (
Reset Node
🔍
Reflectis>Flow>Reflectis Quiz: Reset
This Node resets the quiz to its initial state.
- ⬇️ Input:
- Quiz (
QuizPlaceholder), reference to the Quiz Placeholder. If left empty, it defaults to the component on the same GameObject.
- Quiz (
Event Nodes
These nodes allow you to connect and trigger flows from specific moments of the Quiz lifecycle.
On Quiz Ready
🔍
Events>Reflectis>Reflectis Quiz: On Quiz Ready
This event triggers when the quiz is ready to be interacted with.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance.
- Quiz (
On Quiz Answer Selected
🔍
Events>Reflectis>Reflectis Quiz Answer: On Quiz Answer Selected
This event triggers when a quiz answer is selected by the user.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance - Answer (
QuizAnswer), reference to the selected Quiz Answer.
- Quiz (
On Quiz Answer Unselected
🔍
Events>Reflectis>Reflectis Quiz Answer: On Quiz Answer Unselected
This event triggers when a quiz answer is unselected by the user.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance - Answer (
QuizAnswer), reference to the unselected Quiz Answer.
- Quiz (
On Quiz Continue
🔍
Events>Reflectis>Reflectis Quiz: On Quiz Continue
This event triggers when the user presses the continue button on the quiz.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance.
- Quiz (
On Quiz Go To Results
🔍
Events>Reflectis>Reflectis Quiz: On Quiz Go To Results
This event triggers when the quiz transitions to the results screen.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance.
- Quiz (
On Quiz Finished
🔍
Events>Reflectis>Reflectis Quiz: On Quiz Finished
This event triggers when the quiz is finished.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance.
- Quiz (
On Quiz Reset
🔍
Events>Reflectis>Reflectis Quiz: On Quiz Reset
This event triggers when the quiz is reset to its initial state.
- ⬆️ Output:
- Quiz (
QuizPlaceholder), reference to the Quiz instance.
- Quiz (