Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveInstance

Removes a ray tracing instance associated with a Renderer from this RayTracingAccelerationStructure.
Read time 1 minuteLast updated 6 days ago

Definition

RemoveInstance(Renderer)

Removes a ray tracing instance associated with a Renderer from this RayTracingAccelerationStructure.
public void RemoveInstance(Renderer targetRenderer)

Parameters

targetRenderer

The Renderer associated with the ray tracing instance.

RemoveInstance(int)

Removes a ray tracing instance associated with an axis-aligned bounding box (AABBs) GraphicsBuffer or a Mesh instance from this RayTracingAccelerationStructure.
public void RemoveInstance(int handle)

Parameters

handle

The handle associated with an AABB or Mesh ray tracing instance.

Remarks

Note that to build the acceleration structure on the GPU, you must call RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure.