Documentation

Unity Engine

Unity Engine

Initialization.UpdateCameraMotionVectors

Native Player loop system that stores each camera's previous view-projection matrix and starts a new frame for motion vector tracking.
Read time 1 minuteLast updated 5 days ago

Definition

public struct Initialization.UpdateCameraMotionVectors

Remarks

Motion vector rendering uses this data to calculate how cameras and objects moved since the previous frame. Unity updates this data only when rendering requires motion vectors.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.