buttonquizconfig - eisclimber/ExPresS-XR GitHub Wiki

ButtonQuizConfig

Class in ExPresSXR.Interaction.ButtonQuiz

Inherits from UnityEngine.ScriptableObject

Summary

Holds the config of a quiz to allow serialization. It contains basic information about the type and the question in for of an array of QuizQuestions.

public class ButtonQuizConfig : ScriptableObject

Fields

Name Description
AnswerOrdering The type of questions (what is displayed). Either Object, Text, Video or DifferingTypes (any of the first three).
AnswersAmount Number of answer (and required buttons). Either One, Two, Three, Four or Differing.
AnswerType The type of answers (what is displayed on the buttons). Either Object, Text or DifferingTypes (any of the first two).
DEFAULT_FEEDBACK_PREFIX Default prefix to be added to the feedback.
FeedbackMode The type of feedback (what is displayed). Either ShowAnswers, Object, Text, Video or DifferingTypes (any of the first three).
FeedbackPrefixEnabled If enabled, will add the feedbackPrefixText (plus a '\n') to every feedback.
FeedbackPrefixText The prefix added to every feedback if feedbackPrefixEnabled is enabled.
FeedbackType What feedback (correct or incorrect) is shown. Either None, Always Right, Always Wrong or Random.
NUM_CSV_EXPORT_COLUMNS Number of csv-columns of values returned the export functions.
QuestionOrdering The ordering of the questions. Either Ordered (order of in questions) or Randomize.
Questions The questions that need to be answered to complete the quiz.
If questionOrdering is set to Ordered, the questions are displayed in the order of the array.
QuestionType The type of questions (what is displayed). Either Object, Text, Video or DifferingTypes (any of the first three).
QuizMode The mode of the quiz. Either SingleChoice or MultipleChoice.

Methods

Name Description
GetAllQuestionsCsvExportValues(char) Returns a CSV-formatted string of all export values all QuizQuestions with header: QuizQuestion.GetQuestionCsvHeader().
GetConfigCsvExportValues(char) Returns the configuration data of this config as csv-string.
GetConfigCsvExportValuesList() Returns the configuration data of this config as list of objects.
GetConfigCsvHeader(char) Returns the csv header of the config.
The header is: "quizMode,questionOrdering,answersAmount,answersOrdering,questionType,answerType,feedbackMode,feedbackType"
GetConfigCsvHeaderList() Returns the csv header of the config as a list of objects.
GetEmptyCsvExportValues(char) Returns an empty CSV string matching the column count of NUM_CSV_EXPORT_COLUMNS.

Properties

Name Description
UsedFeedbackPrefix The exact prefix added to every question (including a new line).
Returns an empty string if no prefix should be added.
⚠️ **GitHub.com Fallback** ⚠️