Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RayTracingMode

Options for updating a ray tracing instance added to a RayTracingAccelerationStructure.
Read time 1 minuteLast updated 5 days ago

Definition

public enum RayTracingMode

Remarks

Additional Resources: SystemInfo.supportsRayTracing.

Fields

Value

Description

DynamicGeometryUse this mode when the associated geometry or transformation can change.
DynamicGeometryManualUpdateUse this mode when the associated geometry or transformation can change. Call RayTracingAccelerationStructure.UpdateInstanceGeometry to mark the geometry as dirty.
DynamicTransformUse this mode to have ray tracing instances update the transformation. This mode does not update their geometry.
OffUse this mode to ensure the ray tracing instances are not added to a RayTracingAccelerationStructure, and that they cannot be ray traced.
StaticUse this mode to have the ray tracing instances remain static, and never update their transformation or geometry.