Quiz Customization
Question parameters and layout
The "Quiz Placeholder" component in the "QuizPanel" prefab offers a series of parameters that help creators to better customize the quiz content.

Some of the configurable parameters are:
-
"Show Feedback On Correct Answer": Whether to show a feedback message in case of correct answer or not.
-
"Allow Multiple Selection": This toggle allows users to select more than one answer.
- "Min Selectable Answers": Works only if "Allow Multiple Selection" is active. Select the minimum number of selectable answers for the question.
- "Max Selectable Answers": Works only if "Allow Multiple Selection" is active. Select the maximum number of selectable answers for the question.
-
"Shuffle Answers": Give a different order to the answers every time the quiz is started. With "Pick Subset" off, all the answers are shown, in random order.
- "Pick Subset": Works only if "Shuffle Answers" is active. If you have a wide range of possible answers, you can choose to pick up a smaller set of them for each session.
- "Answers Subset Quantity": Works only if "Pick Subset" is active. Choose how many answers to pick for a quiz instance.
- "Min Correct Answers Quantity": Works only if "Pick Subset" is active. Choose how many minimum correct answers to pick for a quiz instance. Useful if "Allow Multiple Selection" is toggled.
- "Pick Subset": Works only if "Shuffle Answers" is active. If you have a wide range of possible answers, you can choose to pick up a smaller set of them for each session.
-
"Quiz Layout": Select the answer's disposition on the panel: Horizontal, Vertical or Grid.
- "Quiz Grid Columns": Works only if "Quiz Layout" is Grid. The number of columns (3 by default).
-
"Quiz Element Layout": How each answer is drawn: Line (a row of text) or Box (a card that shows the answer's image).
-
"Panel Width" and "Panel Height": the size of the panel in metres (1.5 × 1 in the prefab). The Inspector applies a change at once. An editor script that writes them must then call
OnWidthChanged()andOnHeightChanged()on the placeholder: the app takes the size from the panel's transform, which only those methods update, so without them the panel keeps its previous size in the world.
The QuizPanel prefab is set to Box. Answers that have only a title and no image then appear as blank boxes. For text-only answers, set "Quiz Element Layout" to Line.
The answers are laid out inside the panel and the area does not scroll: an answer that does not fit is created but cut off. In the WebGL player, a Vertical list of four Line answers in a panel 1 m high (the prefab's size) showed only the first two; a Grid with 2 columns showed all four. Choose the layout for the number of answers you have, and check it in a published world.
Text size settings
The Quiz is rendered with a predefined setup of font sizes related to single text elements.
If you need to change them, you can expand the "Text size settings" menu and override the sizes you need.
Answers
The last manageable parameter is "Quiz Answers". From here it's possible to customize how many answers are available per quiz, decide which are correct and customize their appearance with images and a score system.

Follow the tips written in the inspector to customize the prefab in the right way!
Texts in more languages
Every text of the quiz (header, title, description, question, answers and feedback) can be a key of the environment's Localization File, the CSV you upload in the Back Office (see Environments). When the file has a row with that key, users see the translation for their language; a text that is not a key of the file is shown as you wrote it, in every language. Write the key in the field, for example quiz/history/question1, and add a row for it to the file.
- A text takes no arguments: "Question 1 of 4" and "Question 2 of 4" are two rows.
- Fill the cell of every language the tenant offers. When a cell is empty, users see the text of another language of the same row.