---
title: PortalCrossingComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/portalcrossingcomponent
---

# PortalCrossingComponent

A component that allows entities to cross portal boundaries.

## Declaration

```swift
struct PortalCrossingComponent
```

## Overview

Overview You use this with PortalComponent.CrossingMode to enable portal crossing features. When you set this on an entity, this component defines whether the entity is capable of crossing the portal boundary. Entities without this component, entities where isEnabled is false, and entities without a containing entity that specifies inherited portal crossing, aren’t able to cross portals. See PortalComponent for detailed usage.

## Topics

### Initializers

- [init()](realitykit/portalcrossingcomponent/init().md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)

## See Also

### Portals

- [PortalMaterial](realitykit/portalmaterial.md)
- [PortalMaterial.FaceCulling](realitykit/portalmaterial/faceculling-swift.typealias.md)
- [PortalMaterial.TriangleFillMode](realitykit/portalmaterial/trianglefillmode-swift.typealias.md)
- [PortalComponent](realitykit/portalcomponent.md)
- [WorldComponent](realitykit/worldcomponent.md)
