One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

OcclusionCullingComponent

struct · iOS 27.0+ · SDK 27.1

struct OcclusionCullingComponent

A component that controls whether the system performs occlusion culling on the owning Entity and its descendants. Occlusion culling can improve performance by skipping rendering for entities that are fully hidden behind other geometry. Entities are opted into this system by default. This component can be used to disable occlusion culling for an Entity hierarchy if it's observed that culling produces incorrect visuals. Such scenarios may include: - Content that quickly moves in and out of occluded areas. - Content that uses a Geometry Modifier to warp vertices outside of the mesh's reported bounds. - A camera teleports to a new location in a single frame and starts viewing the scene from a drastically different angle or position. The enablement setting on this component will be applied recursively to descendant Entities. A component added to a descendant Entity will override any settings inherited from its parent.

Members (3)

init · iOS 27.0+

init

TypeScript
static init(isEnabled: boolean): OcclusionCullingComponent
Swift declaration
init(isEnabled: Bool)
get · iOS 27.0+

isEnabled

TypeScript
get isEnabled(): boolean
Swift declaration
var isEnabled: Bool

Whether occlusion culling should be performed on this Entity and its children.

set · iOS 27.0+

isEnabled

TypeScript
set isEnabled(value: boolean)
Swift declaration
var isEnabled: Bool

Whether occlusion culling should be performed on this Entity and its children.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →