motionMode
Specifies how to generate motion vectors in this draw range.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public MotionVectorGenerationMode motionMode { get; set; }
Remarks
This corresponds to Renderer.motionVectorGenerationMode.
- If you set this to MotionVectorGenerationMode.Camera, Unity doesn't render the draw commands in per-object motion vector passes, regardless of each draw command's BatchDrawCommand.flags.
- If you set this to MotionVectorGenerationMode.Object, Unity renders the draw commands in per-object motion vector passes if the draw command has BatchDrawCommandFlags.HasMotion set.
- If you set this to MotionVectorGenerationMode.ForceNoMotion, Unity renders the draw commands in per-object motion vector passes if the draw command has BatchDrawCommandFlags.HasMotion set, and it should output a zero motion vector. This behavior relies on the used shader being implemented correctly.