-
-
Notifications
You must be signed in to change notification settings - Fork 2
Button Quiz Config
eisclimber edited this page Feb 15, 2024
·
3 revisions
serializable struct in ExPresSXR.Interaction.ButtonQuiz
Use SetupDialog at ExPresS XR/Tutorial Button Quiz to create, edit and store
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
.
-
QuizMode quizMode
: The mode of the quiz. Either SingleChoice or MultipleChoice. -
QuestionOrdering questionOrdering
: The ordering of the questions. Either Ordered (ordering from thequestions
-array) or Randomize. -
AnswersAmount answersAmount
: Number of answer (and required buttons). Either One, Two, Three, Four or Differing. -
AnswerOrdering answerOrdering
: The ordering of the answers. Either Ordered (ordering from thequestion.answer*
-arrays) or Randomize. -
QuestionType questionType
: The type of questions (what is displayed). Either Object, Text, Video or DifferingTypes (any of the first three). -
AnswerType answerType
: The type of answers (what is displayed on the buttons). Either Object, Text or DifferingTypes (any of the first two). -
FeedbackMode feedbackMode
: The type of feedback (what is displayed). Either ShowAnswers, Object, Text, Video or DifferingTypes (any of the first three). -
FeedbackType feedbackType
: What feedback (correct or incorrect) is shown. Either None, Always Right, Always Wrong or Random. -
bool feedbackPrefixEnabled
: If enabled, will add thefeedbackPrefixText
(plus a '\n') to every feedback. -
string feedbackPrefixText
: The prefix added to every feedback iffeedbackPrefixEnabled
is enabled. Default:DEFAULT_FEEDBACK_PREFIX
-
string usedFeedbackPrefix
: (Readonly) The exact prefix added to every question (including a new line). Returns an empty string if no prefix should be added. -
QuizQuestion[] questions
: The questions that need to be answered to complete the quiz.
IfquestionOrdering
is set toOrdered
, the questions are displayed in the order of the array.
-
string GetConfigCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR)
: (MultiColumnValue & HeaderReplacement) Returns the configuration data of this config as csv-string.
The header is:"quizMode,questionOrdering,answersAmount,answersOrdering,questionType,answerType,feedbackMode,feedbackType"
-
string GetAllQuestionsCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR)
: (MultiColumnValue & HeaderReplacement) Returns a CSV-formatted string of all export values all QuizQuestions with header:QuizQuestion.GetQuestionCsvHeader()
.
The header is:"questionIdx,questionVideo,questionObject,questionText,answerObject0,answerObject1,answerObject2,answerObject3,answerText0,answerText1,answerText2,answerText3,correctAnswers0,correctAnswers1,correctAnswers2,correctAnswers3,feedbackVideo,feedbackObject,feedbackText"
-
List<object> GetConfigCsvExportValuesList()
: Returns the configuration data of this config as list of objects.
-
string GetEmptyCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR)
: Returns a string of empty column for each column of the values exported byGetConfigCsvExportValues()
. -
string GetConfigCsvHeader(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR)
: Returns the csv header of the config. -
string List<object> GetConfigCsvHeaderList()
: Returns the csv header of the config as a list of objects.
-
NUM_CSV_EXPORT_COLUMNS = 8
: Number of csv-columns of values returned the export functions. -
string DEFAULT_FEEDBACK_PREFIX = "Correct Answer was:"
: Default prefix to be added to the feedback.
-
QuizMode
: The mode of the quiz either SingleChoice or MultipleChoice. -
QuestionOrdering
: The ordering of the questions, either Ordered (order of inquestions
) or Randomize. -
AnswersAmount
: Number of answer (and required buttons) One, Two, Three, Four or Differing. -
AnswerOrdering
: The ordering of answers on the buttons, either Ordered (order within the answer arrays) or Randomize. -
QuestionType
: The type of questions (what is displayed) either Object, Text, Video or DifferingTypes (any of the first three). -
AnswerType
: The type of answers (what is displayed on the buttons) either Object, Text or DifferingTypes (any of the first two). -
FeedbackMode
: The type of feedback (what is displayed) either ShowAnswers, Object, Text, Video or DifferingTypes (any of the first three). -
FeedbackType
: What feedback (correct or incorrect) is shown either None, Always Right, Always Wrong or Random.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI