Version: 2023.2
public Rendering.RayTracingSubMeshFlags subMeshFlags ;

描述

Flags that determine how rays intersect the geometry for each submesh relative to Material type during ray tracing.

The Material type can influence the value of this flag. For example if Unity considers the Material opaque, you can specify the RayTracingSubMeshFlags.Enabled and RayTracingSubMeshFlags.ClosestHitOnly flags together for maximum ray tracing performance.