Unity GameObject Singletons: Best Practices

By Ava Pek
Learn how to use GameObject Singletons to solve problems that require receiving MonoBehaviour messages or calling certain Unity API functions, and how to make them in a way that is robust and easy to maintain.
Course info
Level
Intermediate
Updated
Nov 2, 2018
Duration
27m
Table of contents
Description
Course info
Level
Intermediate
Updated
Nov 2, 2018
Duration
27m
Description

It's difficult in Unity to implement a Singleton that can receive MonoBehaviour messages or call certain Unity API functions. In this course, Unity GameObject Singletons: Best Practices, you will learn foundational knowledge of how to create GameObject Singletons to solve problems such as asynchronous downloading, coroutines that can continue after GameObject destruction, and more. First, you will learn what a GameObject Singleton is and when you should use one. Next, you will discover the basic code needed to implement one. Finally, you will explore how to make them robust and easy to maintain. When you are finished with this course, you will have the skills and knowledge of GameObject Singletons needed to create your own solutions to problems that require interfacing with Unity's update loop. Software required: Unity 3D

About the author
About the author

Ava is an independent game developer who has worked several years in consulting for various clients spanning many different industries.

Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Ava, and welcome to my course, Unity GameObject Singletons: Best Practices. I am an independent game developer who has a lot of experience working on esoteric Unity applications such as data visualization and architecture. GameObject singletons can be used to make useful utility classes that are normally cumbersome to maintain. In this course, we are going to learn what we can do with GameObject singletons and how we can create one in a way that is robust. Some of the major topics that we will cover include what a GameObject singleton is, developing a GameObject singleton, and protecting a GameObject singleton. By the end of this course, you will have the skills and knowledge of GameObject singletons needed to create your own solutions to problems that require interfacing with Unity's update loop. Before beginning the course, you should be familiar with Unity3D and C#. I hope you'll join me on this journey to learn about GameObject singletons with the Unity GameObject Singletons: Best Practices course, at Pluralsight.