Category C#
How does StartCoroutine / yield return pattern really work in Unity?
When you dive into the world of game development with Unity, you quickly encounter the concept of coroutines. They are a powerful tool for managing processes that span multiple frames, providing an elegant way to handle asynchronous tasks. In this…
Exploring Ruby’s ‘times()’ Function in C#/Unity
Introduction In the world of programming, different languages often have their own unique features and functions that make them stand out. Ruby, a dynamically-typed scripting language known for its simplicity and elegance, has a handy function called ‘times()’ that allows…
Why is my Unity Build slow?
Boosting Unity Game Build Times: Optimize by Using Prefabs for Levels Introduction Are you frustrated with slow build times in your Unity game? Surprisingly, the culprit behind these sluggish builds might be the excessive number of scenes in your project.…
How to Rotate an Object in Unity with C#
Introduction Rotating objects is a fundamental aspect of game development that adds depth and interactivity to your Unity projects. Whether you want to create realistic animations, implement player controls, or design engaging puzzles, understanding how to rotate objects in Unity…
Serialize and Deserialize JSON and JSON Array in Unity C#
JsonUtility is a lightweight API. Only simple types are supported. It does not support collections such as Dictionary. One exception is List. It supports List and List array! If you need to serialize a Dictionary or do something other than simply serializing and deserializing simple data types, use a third-party…