setup - eisclimber/ExPresS-XR GitHub Wiki

ButtonQuiz.Setup(ButtonQuizConfig,QuizButton[],McConfirmButton,TMP_Text,Transform,VideoPlayer,RawImage,Canvas)

Method in ButtonQuiz

Summary

Evaluates and sets everything up for the quiz to be started. Will be called automatically when an quiz is started.

public bool Setup(ButtonQuizConfig config, QuizButton[] buttons, McConfirmButton mcConfirmButton, TMP_Text displayText, Transform displayAnchor, VideoPlayer displayPlayer, RawImage displayVideoImage, Canvas afterQuizMenu)

Parameters

Name Description
ExPresSXR.Interaction.ButtonQuiz.ButtonQuizConfig config Quiz config to be used.
ExPresSXR.Interaction.ButtonQuiz.QuizButton[] buttons Buttons to be used.
ExPresSXR.Interaction.ButtonQuiz.McConfirmButton mcConfirmButton McConfirmButton to be used.
TMPro.TMP_Text displayText DisplayText to be used.
UnityEngine.Transform displayAnchor Display Anchor to be used.
UnityEngine.Video.VideoPlayer displayPlayer Display Player to be used.
UnityEngine.UI.RawImage displayVideoImage Display Video Image to be used.
UnityEngine.Canvas afterQuizMenu The Quiz shown after quiz completion.

Returns

If the setup was successful.

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