Table of Contents

Class McqSettings

Namespace
WitShells.McqUI

Centralized settings for the MCQ UI system. Singleton ScriptableObject that can be accessed globally.

public class McqSettings : ScriptableObject
Inheritance
McqSettings

Properties

AllowMultipleSelections

public bool AllowMultipleSelections { get; }

Property Value

bool

AutoRevealCorrectAnswer

public bool AutoRevealCorrectAnswer { get; }

Property Value

bool

AutoRevealDelay

public float AutoRevealDelay { get; }

Property Value

float

AutoStartOnEnable

public bool AutoStartOnEnable { get; }

Property Value

bool

CorrectColor

public Color CorrectColor { get; }

Property Value

Color

DefaultTimeLimit

public float DefaultTimeLimit { get; }

Property Value

float

FillDuration

public float FillDuration { get; }

Property Value

float

Instance

Singleton instance of MCQ Settings. Creates default settings if none exists. Safe to call during serialization - will return null if not available.

public static McqSettings Instance { get; }

Property Value

McqSettings

NormalColor

public Color NormalColor { get; }

Property Value

Color

QuestionTypewriterSpeed

public float QuestionTypewriterSpeed { get; }

Property Value

float

RandomizeOrder

public bool RandomizeOrder { get; }

Property Value

bool

RevealDelay

public float RevealDelay { get; }

Property Value

float

SafeInstance

Get settings instance safely, with fallback to default values if not available during serialization

public static McqSettings SafeInstance { get; }

Property Value

McqSettings

SelectedColor

public Color SelectedColor { get; }

Property Value

Color

ShuffleOptions

public bool ShuffleOptions { get; }

Property Value

bool

TypewriterSpeed

public float TypewriterSpeed { get; }

Property Value

float

UseTypewriterEffect

public bool UseTypewriterEffect { get; }

Property Value

bool

UseTypewriterForQuestion

public bool UseTypewriterForQuestion { get; }

Property Value

bool

WrongColor

public Color WrongColor { get; }

Property Value

Color

Methods

ResetToDefaults()

Reset all settings to default values

public void ResetToDefaults()