Kuizo Documentation
  • Getting Started
    • What is Kuizo?
    • Requirements
    • Installation Instructions
    • Quickstart
  • Using Kuizo
    • Creating and Setting up a new Kuizo Global Settings Object
    • Creating and Managing Categories
    • Creating and Managing Questions
  • Creating and Managing Quizzes
  • Game Settings
    • Configuring the Number of Questions
    • Configuring the Time Limit
    • Configuring the Number of Players
  • Information
    • Contact Me
    • Credits
Powered by GitBook
On this page

Creating and Managing Quizzes

PreviousCreating and Managing QuestionsNextConfiguring the Number of Questions

Last updated 1 month ago

The Quiz object contains the actual questions for the quiz. Each quiz links to a category and contains a list of Question objects.


How to create a Quiz object
  1. Right-click in the Project window.

  2. Navigate to Create → Kuizo → Data→ Quiz.

  3. A new Quiz object will be created.

  4. Rename it and place it in the correct folder location:

    • Default location: KamelMahjoub/Kuizo/Ressources/Data/Quizzes.

    • If the default folder location has been modified, place it in the updated directory specified in KuizoFolderPaths.

How to set up a Quiz object
  1. Select a Quiz object in the Project window.

  2. In the Inspector, enter the quiz name.

  3. Next, select a category from the categories dropdown.

  4. The available categories come from the Categories object linked in the Kuizo Global Settings.

  5. Assign the question objects to the questions list

  6. Press Ctrl+S to save the Quiz object.

How to add questions to a Quiz object
  1. Select a Quiz object in the Project window.

  2. In the Inspector, find the questions list field.

  3. Adjust the size value to the number of questions you want to include. This will generate empty slots.

  4. For each slot, drag and drop a Question object from your Project window into the field.

    • Alternatively, you can click the small circle icon to the right of a slot to select a Question object from the object picker.

  5. Press Ctrl+S to save the Quiz object.

How to quickly add multiple questions to a Quiz object
  1. Select a Quiz object in the Project window.

  2. In the Project window, locate and select multiple Question Objects that you want to include in the quiz.

  3. Drag the selected Question objects and drop them directly onto the questions list field in the Inspector.

  4. The questions list field will automatically resize to fit all the dropped Question objects, assigning each one to a new slot.

  5. Press Ctrl+S to save the Quiz object.

How to remove a Question From a Quiz Object
  1. Select the Quiz object in the Project window.

  2. In the Inspector, expand the questions list field.

  3. Select the category to be removed.

  4. Click the minus (-) button at the bottom of the list to remove the selected category.

    • Pressing the minus button without selecting a question will delete the last entry.

    • Alternatively, you can right-click on the selected question and choose Delete Array Element to remove it.

  5. Press Ctrl+S to save the Quiz object.

Where is the default location for Quiz objects

By default, the location for the Quiz objects is :

  • KamelMahjoub/Kuizo/Resources/Data/Quizzes

How to change the Quizzes default location

This tutorial requires modifying scripts.

  1. In the Project window, navigate to KamelMahjoub/Kuizo/Scripts/Constants.

  2. Locate and open the script named KuizoFolderPaths.

  3. Inside the script, find the variable QuizzesFolderPath.

  4. Update it to your desired location.

    • The quiz object must be placed inside a Resources folder for proper loading at runtime.

  5. Save the script.

  6. Return to Unity and let it recompile the changes.