This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingAccelerationStructure.ClearInstances

Declaration

public void ClearInstances();

Description

Removes all ray tracing instances from the acceleration structure.

Note that in order to reflect this action on the GPU, building the acceleration structure has to be triggered by calling RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure.

See Also: RayTracingAccelerationStructure.AddInstance.