buttonquizquestion - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Interaction.ButtonQuiz
Inherits from System.Object
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.
public class ButtonQuizQuestion| Name | Description |
|---|---|
| ButtonQuizQuestion(int,VideoClip,string,GameObject,string,GameObject[],string[],bool[],VideoClip,string,GameObject,string) | Contructor for a ButtonQuizQuestion. |
| Name | Description |
|---|---|
| AnswerObjects | An array of size 4 holding the GameObjects shown as answer option on a QuizButton. |
| AnswerTexts | An array of size 4 holding the strings shown as answer option on a QuizButton. |
| CorrectAnswers | An array of 4 booleans where true marks ans answer and their associated text and GameObject as correct. |
| FeedbackObject | The video url (link to the 'StreamingAsset/'-folder) shown as feedback. |
Will be overwritten by feedbackVideo. |
|
| FeedbackText | The text shown as feedback. |
| FeedbackVideo | The video shown as feedback. |
| FeedbackVideoUrl | The GameObject shown as feedback. Has higher priority than the videoUrl. |
| ItemIdx | The index of the question. |
It should be the same as it's index in the QuizConfig.question it is contained in. |
|
| Will be automatically set when editing via the SetupDialog. | |
| NUM_CSV_EXPORT_COLUMNS | Number of csv-columns of values returned the export functions. |
| QuestionObject | The GameObject shown as question. |
| QuestionText | The text shown as question. |
| QuestionVideo | The video clip shown as question. Has higher priority than the videoUrl. |
| QuestionVideoUrl | The video url (link to the 'StreamingAsset/'-folder) shown as question. |
Will be overwritten by questionVideo. |
| Name | Description |
|---|---|
| GetEmptyCsvExportValues(char) | Returns an empty CSV string matching the column count of NUM_CSV_EXPORT_COLUMNS. |
| GetFeedbackGameObjects(ButtonQuizConfig) | Generates an array feedback GameObject as specified by the config. |
| GetFeedbackText(ButtonQuizConfig) | Generates a feedback text as specified by the config. |
| GetFeedbackVideo(ButtonQuizConfig) | Returns a feedback video clip as specified by the config (if exists). |
| GetFeedbackVideoUrl(ButtonQuizConfig) | Returns a feedback video url as specified by the config (if exists). |
| GetQuestionCsvExportValues(char) | Returns the csv header of the question as csv-string. |
| GetQuestionCsvExportValuesList() | Returns the question data of this config as list of objects. |
| GetQuestionCsvHeader(char) | Returns the csv header of the question. |
| GetQuestionCsvHeaderList() | Returns the csv header of the question as a list of objects. |