Creating Manager Classes in Unity!

addam davis
2 min readSep 29, 2021

Objective: What are manager classes and how do you use them?

Managers are classes that control all of their perspective types. For instance, the game manager controls the state of the game, while the Audio manager control all the audio in the game.

To create a game manager, you create a new c# script and label it GameManager.

You will notice the default icon for the game manager is a silver gear. This is normal and if you wanted to change the icon you could.

The other managers you create will have the normal icon. Creating an audio manager you start with creating an empty object and labeling it as such.

This will hold all the audio in your game. Create another empty object inside the audio manager and label this one as VO.

The VO would need an audio source component.

From there you could pass your voice over triggers into the VO object in the audio manager. You may be wondering why you would want to use an audio manager. Using an audio manager allows you to control the audio location in a 3D environment. This means that the player couldn’t accidentally walk away from audio instructions or ambient music. Don’t be afraid to experiment with the manager class. In the next tutorial I’ll show you how to manager manager classes using singletons.