Switching to Another Game Using a Portal
Steps
⚠️
You can only switch to a game that has been published.
Copy the PID of the game you want to switch to.
- Go to the page of the published game you want to switch to.
- Copy the PID from the address bar of that game.
![portal_step-1](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fportal_step-1.cae0426b.png&w=3840&q=75)
Add a portal to the world and set its properties.
- Select the portal in the asset panel on the left side of the editor and add it to the world.
- Enter the copied PID into the portal’s pid attribute.
- Turn on the CanCollide property in the portal’s Behavior settings.
![portal_step-2](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fportal_step-2.9532f236.png&w=3840&q=75)
Interact with the portal in the game
When you run the game and interact with the portal, you will switch to the other game.