文档

Unity Engine

Unity Engine

normalized

Creates a normalized copy of a vector based on the current vector.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public readonly Vector4 normalized { get; }

Remarks

The normalized vector has a Vector4.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. This property doesn't modify the current vector. To modify and normalize the current vector, use the Vector4.Normalize method.
Additional Resources: Vector4.Normalize method.