Skip to content

Quiz Utility

eisclimber edited this page Jan 18, 2024 · 2 revisions

Quiz Utility

class in ExPresSXR.Interaction.ButtonQuiz

Description

Helper class for the button quiz.

Members

Public Methods

  • int[] GenerateIdentityArray(int length): Generates an array with size equal length where every element holds its index, i.e. [0, 1, 2, ..., length]
  • int[] Shuffle(int[] array): Shuffles and array using a Fisher-Yates-Shuffle.
  • int GetNumAnswersForQuestion(ButtonQuizConfig config, ButtonQuizQuestion question): Returns the number of answers for a question.
  • int[] GetAnswerPermutation(ButtonQuizConfig config, ButtonQuizQuestion question): Get a permuation of the valid answers of a question. Indices of unused answer indices will be set to -1.
  • string MakeStreamingAssetsVideoPath(string filePath): Converts a relative path to a StreamingAssets-Path whilst ensuring the path refers to an .mp4 or .mov video file.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally