Created
October 12, 2018 18:05
-
-
Save prestomation/059a808bd90921512eab8ae670a66208 to your computer and use it in GitHub Desktop.
Passing parameters to Sumerian using the query string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To pass in parameters to your Sumerian scene at load time, you may use query parameters | |
//Link to your scene like this: https://SCENEID.us-east-1.sumerian.aws/? | |
//Now in your script code: | |
const params = new URLSearchParams(window.location.search); | |
//prints 'value1' | |
console.log(params.get("key1")) | |
//prints 'value2' | |
console.log(params.get("key2")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to invoke this script, do we have to attach this script to some 3d object?