init
TypeScriptstatic init(isEnabled: boolean): OcclusionCullingComponentSwift declarationinit(isEnabled: Bool)struct · iOS 27.0+ · SDK 27.1
struct OcclusionCullingComponentA 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.
static init(isEnabled: boolean): OcclusionCullingComponentSwift declarationinit(isEnabled: Bool)get isEnabled(): booleanSwift declarationvar isEnabled: BoolWhether occlusion culling should be performed on this Entity and its children.
set isEnabled(value: boolean)Swift declarationvar isEnabled: BoolWhether occlusion culling should be performed on this Entity and its children.
No declarations were skipped in this snapshot.