Tutorial: Open Web Page with Entities¶
Entities are often used to add objects to your environment. However, you can do so much more with this when you use scripting to define their behavior. In this tutorial, we will use an entity as a button to open a web page on your tablet. You can use this tutorial to do things like directing your visitors to specific Marketplace items for purchase.
On This Page:
Consider getting familiar with the following concepts before starting this tutorial:
Write a Script to Open a Web Page¶
The script used here opens a web page on the Tablet when a user clicks or triggers an entity. In this example, we’ve written a client entity script that opens the Marketplace web page when an entity/item is triggered. The script looks for the URL in the ‘User data’ property of the entity and injects the Marketplace code into the link. This allows the user who triggered the script to purchase the item without having to go to the Market app on their Tablet or HUD.
You can get the script here.