<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PortalComponent/Portal",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15PortalComponentV0C0V"
  },
  "title" : "PortalComponent.Portal"
}
-->

# PortalComponent.Portal

A pair of related entities that make up a configured portal.

```
struct Portal
```

## Overview

[`makePortal(surfaceStyle:boundaryStyle:boundaryMode:)`](/documentation/RealityKit/PortalComponent/makePortal(surfaceStyle:boundaryStyle:boundaryMode:)) returns this value.
You’re responsible for adding both entities to your scene.

## Topics

### Instance Properties

[`let portalEntity: Entity`](/documentation/RealityKit/PortalComponent/Portal/portalEntity)

The entity that has the portal surface mesh, [`PortalMaterial`](/documentation/RealityKit/PortalMaterial), and [`PortalComponent`](/documentation/RealityKit/PortalComponent).

[`let worldEntity: Entity`](/documentation/RealityKit/PortalComponent/Portal/worldEntity)

The entity that has [`WorldComponent`](/documentation/RealityKit/WorldComponent). Add portal world content as descendants of this entity.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)