Skip to content

Instantly share code, notes, and snippets.

@prestomation
Created October 12, 2018 18:05
Show Gist options
  • Save prestomation/059a808bd90921512eab8ae670a66208 to your computer and use it in GitHub Desktop.
Save prestomation/059a808bd90921512eab8ae670a66208 to your computer and use it in GitHub Desktop.
Passing parameters to Sumerian using the query string
//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"))
@shubheshswain91
Copy link

How to invoke this script, do we have to attach this script to some 3d object?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment