文档

Unity Engine

Unity Engine

Fixed

Animator updates in the FixedUpdate loop. This is ideal for physics-driven animations that require frame rate independence.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
Fixed = 1

Remarks

This mode ensures that animation updates align with the physics engine's update loop, maintaining smooth and consistent physics interactions regardless of the frame rate. By default, it synchronizes with the FixedUpdate loop, but this can be reconfigured for specific project requirements. Essential for animations tightly coupled with physics simulations, such as character rigs and vehicle dynamics. Ensure Animator.animatePhysics is set to true for accurate synchronization with physics calculations and collision responses.