normalized
Returns a normalized vector based on the current vector. The normalized vector has a Vector2.magnitude of 1 and is in the same direction as the current vector. Returns a zero vector If the current vector is too small to be normalized.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public readonly Vector2 normalized { get; }
Remarks
Note that this does not modify the current vector. To modify and normalize the current vector, use the Vector2.Normalize function.
Additional Resources: Vector2.Normalize function.