---
title: worldEntity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/portalfactory/portalsetup/worldentity
---

# worldEntity

The world entity with WorldComponent configured.

## Declaration

```swift
let worldEntity: Entity
```

## Discussion

Discussion Add child entities to this entity to populate the portal’s world. Content added here will be visible through the portal. This entity is a child of rootEntity.

## See Also

### Accessing portal entities

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