Now that you've created an awesome virtual reality world in the CodeHS editor, you can actually view your VR world through a smartphone browser! 

The world you've created is simply a webpage that lives at a specific URL on the Internet. To open it up on a smartphone, all we have to do is visit this URL on the smartphone's browser (Chrome or Safari work best). There are a few ways to do this:

1. Scan the QR Code for your world

In the editor, go to the More tab and choose "Run on Phone" to generate a QR Code for the VR world's URL:

Scanning this QR code from any QR code scanner will open the URL in the mobile browser. We recommend using either Expo or Chrome to scan the QR code. Expo is an app available free for iOS or Android, and has an easy-to-access Scan QR Code option.

The QR code can also be scanned with the Google Chrome app. To scan with Chrome on an iPhone, you just need to force press the Chrome app icon, and the menu shown below will appear. Then select the Scan QR Code option.

Now you should see your VR world loaded in your mobile browser! This is the easiest way to load the URL in a mobile browser. To do this without a QR scanner:

2. Alternative: Copy the URL and send it to your phone

You can get the URL for your VR world directly by choosing "See HTML in new window" under the Run Code button.

This will open up your world in a new window. Your browser may block this window pop up, in which case you'll need to allow pop ups:

Now you should see your world in a new window. The URL for the world is in the window:

Copy this URL and send it to your phone either over email or text. Alternatively, you can manually type out the URL in your phone's browser.
Open this URL in your phone's browser (Chrome or Safari work best) and you should see your Virtual Reality creation loaded on your phone!

Here is an example view in the Chrome browser. Tilting the phone in different directions will allow you to look around the VR world:

Did this answer your question?