One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PortalComponent.Portal

struct · iOS 27.0+ · SDK 27.1

struct Portal

A pair of related entities that make up a configured portal. ``makePortal(surfaceStyle:boundaryStyle:boundaryMode:)`` returns this value. You're responsible for adding both entities to your scene.

Members (2)

get · iOS 27.0+

worldEntity

TypeScript
get worldEntity(): Entity
Swift declaration
let worldEntity: Entity

The entity that has ``WorldComponent``. Add portal world content as descendants of this entity.

get · iOS 27.0+

portalEntity

TypeScript
get portalEntity(): Entity
Swift declaration
let portalEntity: Entity

The entity that has the portal surface mesh, ``PortalMaterial``, and ``PortalComponent``.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →