---
title: PortalFactory.PortalSetup
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/portalfactory/portalsetup
---

# PortalFactory.PortalSetup

Contains the portal and world entities created by PortalFactory.

## Declaration

```swift
struct PortalSetup
```

## Overview

Overview The setup includes a root entity containing both the portal and world entities as children. Simply add rootEntity to your scene to display the portal.

## Topics

### Accessing portal entities

- [portalEntity](realitykit/portalfactory/portalsetup/portalentity.md)
- [worldEntity](realitykit/portalfactory/portalsetup/worldentity.md)
- [rootEntity](realitykit/portalfactory/portalsetup/rootentity.md)

## See Also

### Configuring the portal

- [PortalFactory.Style](realitykit/portalfactory/style.md)
