Skip to content

displayanswer

eisclimber edited this page Apr 4, 2026 · 1 revision

QuizButton.DisplayAnswer(string,GameObject,bool)

Method in QuizButton

Summary

Displays an answer using the provided information and removes the old one. If no information is provided will disable the button. This may only happen during differing-answers-multiple-choice-quizzes.

public void DisplayAnswer(string answerText, GameObject answerObject, bool correctChoice)

Parameters

Name Description
string answerText Text to be displayed.
UnityEngine.GameObject answerObject Prefab to be displayed.
bool correctChoice Whether or not the button is correct.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally