Getting started

Introduction

The Options System is a modular way of implementing settings to your own games. Each object in the menu has it's own script with a corresponding tag instead of a big script with a bunch of methods. This creates a cleaner solution and is easier to work with in a team.

Setup

Firstly, add the Options Load script to your scene. This script gathers every setting from your game and loads user preferences. Without it changing options takes a long time. Then in your menu you can attach a MenuOption script to an interactable. Each type requires it's own script (e.g the slider needs OptionsSlider to operate). In there you can assign the name of the option and change how the data gets displayed.

Built in options

Option

Description

resolution

Controls screen resolution. Value needs to be parsed in the correct format: WIDTHxHEIGHT.

fullscreen

Controls the window full screen mode. You can use bool or FullScreenMode as a value.

framelimit

Controls the limit of frames per second.

vsync

Controls the vsync count.

Last updated