Unity Issue Tracker - unity_MatrixPreviousM is not updating when the GameObject changes position
Closed
UUM-14412
unity_MatrixPreviousM is not updating when the GameObject changes position
Unity: RP Foundation
As Designed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
Camera only generates motion vector data when the depthMode is set correctly. (User error)
Reproduction steps:
1. Open the attached project “CustomSRP_MotionVectors”
2. Open the “Scene 01_MotionVector” Scene
3. Enter Play mode
4. Enable the Frame Debugger
5. Select one of the “Draw Mesh” calls
6. Observe the value of the unity_MatrixPreviousM matrix
7. Disable the Frame Debugger and unpause the Scene
8. After the positions of the GameObjects change, enable the Frame Debugger
9. Select the same “Draw Mesh” call
10. Observe the value of the unity_MatrixPreviousM matrix
Expected result: The value is updated
Actual result: The value is the same