In Unity, the console is the most important place where we debug and output variables or objects. Here is an example of the console output in Unity:
Is there anyway
Interface is another cornerstone concept in the Object-oriented Programming. They are not classes so that they can't have their own instances.
Features of interface:
* A class can implement more than
Like many other programming languages, Polymorphism is a feature of object-oriented programming that allows classes to have more than one type. Simply put, we can let a child class considered
Let the camera follow the character's movement in Game is quite often to see in games, such as Super Mario. Luckily Unity make it quite easy to implement by making
The rendering pipeline, also named the graphics pipeline, is a series of stages that a graphics assets goes through to render an image on the user's screen. The reason why
In the article Introduction to Shader in Unity 2023, we already saw how to define a variable in Properties, and which provides a way we can adjust values on the
As mentioned in the Introduction to Shader in Unity, Unity provides tons of the Shader data types which can use to create fantastic visual effects. Here are more details on
After the example in the last article(), we have seen a couple of places using Semantics. In this article, we are going to have a look at the most common
As mentioned in the Introduction to Shader in Unity, we all know that a Shader must contain at least one SubShader, and maybe more than one SubShaders, which is the
Many of us have heard or even used Shader in the Unity game, so in the next coming few weeks, we will go through few hot topics on the Shader.
In Unity, Quaternion is used to represent rotation, which is a struct, contains 4 components, x, y, z and w, representing a gameobject's coordinator in the scene. We can use
Image we have a gameobject with a script SelfExplode attached to it. We want this specific gameobject explode with 60 seconds after spawn.
In Unity, MonoBehaviour is a class that you can use to extend the functionality of a game object. When you attach a script derived from MonoBehaviour to a game object,
Suppose we have a bunch of 2D resources, such as idle, run, and so on, and we want to import that in our 2D game with animation, here are few
Many game developer are using GameManager to manage the game status, do initialization and more in their games. So it is recommend for anyone who wants to have the same
[System.Serializable] is a C# attribute that can be applied to a class, struct, or field to indicate that it can be serialized by Unity's serialization system. By doing which
Image you have a grouped objects in the hierarchy, Game object 1 has child game objects 1_0, 1_1 and 1_2 as following:
So how do we get
Store user's data or game's state in JSON, or fetch data from api call in game, Luckily, Unity does provide the JsonUtility to rescue, which can easily convert a json