Null Check and Equality in Unity

In some programming languages – like C# – it is a common practice to use comparison operators and functions to check for null references. However, when programming in Unity, there are some particularities to keep in mind that the usual C# programmer usually does not take into consideration. This article is a guide on howContinue reading “Null Check and Equality in Unity”

Unity’s Scripting Duality and Object Destruction

The Unity engine provides users with tools and abstractions that ease its usage and hide its complexity. Although we often take these commodities for granted and completely forget they exist, we often face a situation in which they become apparent, usually due to an unexpected behaviour. In this article, I discuss how an example ofContinue reading “Unity’s Scripting Duality and Object Destruction”

Unity Serialization Part 3: Scriptable Objects

This post is part of a series about Unity serialization. Click here for part 1: how it works and examples or click here for part 2: defining a serializable type. On the last article, we learnt how we can define our own serializable types and discovered some problems that can emerge from it. One solution (although not ideal) toContinue reading “Unity Serialization Part 3: Scriptable Objects”