Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Output a motion vector texture from a camera

Output a texture with data about object motion in the camera view.
Read time 1 minuteLast updated 22 days ago

DepthTextureMode.MotionVectors
builds a screen-sized RG16 (16-bit float/channel) texture, where screen space pixel motion is encoded into the R&G channels. The pixel motion is encoded in screen UV space.

Additional resources