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

RayTracingAccelerationStructure.ClearInstances

切换到手册
public void ClearInstances ();

描述

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.