Version: 2022.1
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingSubMeshFlags.Disabled

切换到手册

描述

Unity skips the sub-mesh when building a RayTracingAccelerationStructure. As a result, rays cast using TraceRay HLSL function will never intersect the sub-mesh.