Contents

PortalComponent.ClippingMode.volume(_:)

Clips the contents within the portal to a box-shaped region.

Declaration

case volume(PortalComponent.Volume)

Parameters

  • volume:

    A Volume describing the box’s center and extents in portal-local space.

Discussion

Use this case for room-sized portals and other bounded portal spaces where content shouldn’t extend infinitely behind the portal surface. RealityKit hides any portal world content outside the volume.

For portals where the box should enclose the portal surface, enclosingBox(depth:) is a convenient way to configure this case alongside the matching PortalComponent.CrossingMode.volume(_:).