O'Reilly logo

Unity Game Development Scripting by Kyle D'Aoust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Game Settings

In this chapter, we will be going over optimizations for our game. To optimize our game, we'll add an Options menu that will create, save, and load configurations for video and sound. By default, there are some settings given to us by Unity to allow the player to choose what settings they want, but we will allow them to customize their experience.

In this chapter, we'll cover the following topics:

  • Creating video configurations
  • Creating audio configurations
  • Saving and loading custom settings
  • Modifying Unity's native settings
  • Creating an Options GUI
  • Using PlayerPrefs to save settings

Figuring out what to optimize

In almost every video game, there is an Options menu with various aspects of the game that you can modify. PC games tend ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required