One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

WorldComponent

struct · iOS 18.0+ · SDK 27.1

struct WorldComponent

A component that defines a portal world. This component separates an entity and its descendants from the default world, allowing it to only be visible through a portal. Use a ``PortalComponent`` and point its ``PortalComponent/targetEntity`` to this entity to render this world. See ``PortalComponent`` for information about example usage, clipping, crossing, and lighting.

Members (1)

init · iOS 18.0+

init

TypeScript
static init(): WorldComponent
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →