Skip to content

UNI021: Frame-rate dependent update

What and why

Incremental transform mutation in Update/LateUpdate without Time.deltaTime scaling (frame-rate dependent).

Frame-rate dependent updates behave differently across devices.

How to fix: multiply motion by Time.deltaTime (or fixed delta in FixedUpdate).

Fix guidance

Scale transform mutations by Time.deltaTime for frame-rate independence.

Tags

performance, unity

Suppression

Use // unilyze-disable-next-line UNI021 -- reason immediately before the reported line. These detector findings are line-based, so separate overload occurrences can be suppressed independently. For project-wide suppression, use "rules": { "UNI021": "off" }; use a baseline to freeze existing findings while reporting new ones.