getanswerpermutation - eisclimber/ExPresS-XR GitHub Wiki

QuizUtility.GetAnswerPermutation(ButtonQuizConfig,ButtonQuizQuestion)

Method in QuizUtility

Summary

Get a permutation of the valid answers of a question. Indices of unused answer indices will be set to -1.

public static int[] GetAnswerPermutation(ButtonQuizConfig config, ButtonQuizQuestion question)

Parameters

Name Description
ExPresSXR.Interaction.ButtonQuiz.ButtonQuizConfig config Configuration of the Quiz.
ExPresSXR.Interaction.ButtonQuiz.ButtonQuizQuestion question Question for which a answer permutation should be created.

Returns

A Permutation of the answers indices.

⚠️ **GitHub.com Fallback** ⚠️