worldEntity
TypeScriptget worldEntity(): EntitySwift declarationlet worldEntity: EntityThe entity that has ``WorldComponent``. Add portal world content as descendants of this entity.
struct · iOS 27.0+ · SDK 27.1
struct PortalA 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.
get worldEntity(): EntitySwift declarationlet worldEntity: EntityThe entity that has ``WorldComponent``. Add portal world content as descendants of this entity.
get portalEntity(): EntitySwift declarationlet portalEntity: EntityThe entity that has the portal surface mesh, ``PortalMaterial``, and ``PortalComponent``.
No declarations were skipped in this snapshot.