buttonquiz - eisclimber/ExPresS-XR GitHub Wiki
Classes for the button quiz.
| Name | Description |
|---|---|
| ButtonQuiz | Represents a configurable quiz where answers are given by pressing buttons. |
It is advised to create and edit the quiz and config exclusively via SetupDialog at ExPresS XR/Tutorial Button Quiz.
A detailed description of the config can be found at QuizConfig.
If the answers allow the type GameObject and those Game Objects are GrabInteractables they can be picked up.
When used together with the DataGatherer most information can be exported using the CSV-save getter-methods.
Selecting one of the *ExportValues()-functions will automatically set the correct header for the DataGatheringBinding.
The trigger for exporting should be the ButtonQuiz.OnAnswerGiven-Event, calling the DataGatherer's ExportNewCSVLine()-method.|
|ButtonQuizConfig|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.|
|ButtonQuizQuestion|Serializable class representing a question in the TutorialButtonQuiz.
Besides being able to store question, answer and feedback values it also features methods for retrieving them using a QuizConfig.|
|McConfirmButton|An expansion of BaseButton representing the Button that is used when confirming a answer TutorialButtonQuiz when in MultipleChoiceMode.|
|QuizButton|An expansion of BaseButton representing the Button that is used when answering a TutorialButtonQuiz.
It is able to display answer options in the form of text and GameObject that will hover above the press anchor.
In order to display the GameObjects it is advised to create a Prefab.
Also move them a bit up on the y-axis and if they should be made interactable add a XRGrabInteractable to it.
Most logic is restricted to non-Toggle-Mode as Toggle-Mode is used when the quiz is in MultipleChoice-Mode. If in MultipleChoice-Mode the button will be automatically set to Toggle-Mode and the feedback is handled via an extra (See McConfirmButton).
When pressed the events OnPressedCorrect and OnPressedIncorrect are invoked to notify if the button was pressed correctly or not.|
|QuizUtility|Helper class for the button quiz.|
|SetupValidator|Helper class for validating the button quiz.|
| Name | Description |
|---|---|
| AnswerOrdering | The ordering of the questions. Either Ordered (order of in questions) or Randomize. |
| AnswersAmount | The number of answers. |
| AnswerType | The type of answers (what can be selected). |
| FeedbackMode | The type of feedback provided after answering a question. |
| FeedbackType | How feedback is displayed. |
| QuestionOrdering | The ordering of the questions. Either Ordered (order of in questions) or Randomize. |
| QuestionType | The type of questions (what is displayed). |
| QuizMode | The mode of the quiz. Either SingleChoice or MultipleChoice. |