How to convert a -1 to 1 input axis to a 0-1 range in Unity One of the most straightforward methods of converting an arbitrary range to a fixed 0 to 1 range, is to use Inverse Lerp.
How to fade a 2D sprite in Unity Learn how to fade a sprite over time in Unity by modifying the alpha channel of its colour with Move Towards.
How to Lerp Colour in Unity It’s possible to change a colour over time using Color.Lerp, by setting a start colour, a target colour, and passing in a blend value, T.
How to Lerp Rotation in Unity Using Lerp with rotation Lerp can be used with Quaternions to rotate an object to an angle over a period of time.
How to Lerp by speed in Unity It’s possible to control the speed of Lerp by incrementing a scaled T value but this is, technically, not how Lerp is supposed to work.
How to move an object with the keyboard in Unity To move an object with the keyboard, or with any other input device, multiply the direction of movement you want to apply by an Input Axis.
How to calculate distance in Unity There are two ways to calculate distance in Unity. With the Distance function or with the Magnitude function.
How to calculate speed in Unity There are two main methods for calculating speed in Unity, the Rigidbody Method and the Position Method.
How to calculate direction towards another object in Unity To calculate the direction between two objects or points in Unity, subtract the position of the target from the position of the origin.