M. Editor

M. Editor

Color Management in Unity

Unity Color Inspector

In the world of Unity, one of the most critical data structures for color management is “Color”, along with its 32-bit counterpart, “Color32”.These structures empower you to define a wide range of colors and associate them with various components in…

Mastering LayerMask in Unity

Unity layer mask inspector

LayerMask in Unity are essential for specifying one or more layers on which specific actions can be applied. Think of them as arrays containing layers. Table of Contents Using Layers Through the Inspector Creating a LayerMask in Code LayerMask with…

Unity Animation Event

Unity animation event add event

In Unity, the capacity to trigger events at specific moments within an animation is an invaluable tool for game developers. Unity provides a feature called “animation events” that allows for the integration of custom behaviors or actions at precise timestamps…

Unity How to play animation

Unity how to play animation

In Unity, play animation can be achieved in three distinct ways, each offering its unique utility.Regardless of the method chosen, you will require an Animator component, containing your animation states. Table of contents How to play Animation Without Parameters Using…

Unity How to lock rotation

Unity how to lock rotation

As usual on Unity, properties can be modified by code or using the Inspector.To lock a rotation, we’ll need to use the properties of the Rigidbody2D or Rigidbody components. Lock rotation of an 2D object In the 2D world, a…