n-portal

altspace/components. n-portal

Spawn a portal that allows you to travel to a different space or a different location in the current space.

Example
<a-entity n-portal='target-space: campfire-lobby'></a-entity>

Extends

Members

targetEntity :selector

A selector pointing to an A-Frame Entity. The portal will send users to the selected entity's position and rotate the user in its direction. Note: The target position/rotation will not be updated if the targetEntity moves.

targetEvent :string

The id of the event that you want the portal to send users to.

targetSpace :string

The space id of the space that you want the portal to send users to.