Scene Swapper is an on-canvas application allowing users to swap scenes by clicking on the key asset.
- Key Asset: When clicked this asset will automatically swap the current scene for another one.
- Key Asset: the data object attached to the dropped key asset stores the default and currently displayed scene.
Create a .env file in the root directory. See .env-example for a template.
| Variable | Description | Required |
|---|---|---|
NODE_ENV |
Node environment | No |
SKIP_PREFLIGHT_CHECK |
Skip CRA preflight check | No |
INSTANCE_DOMAIN |
Topia API domain (api.topia.io for production, api-stage.topia.io for staging) |
Yes |
INTERACTIVE_KEY |
Topia interactive app key | Yes |
INTERACTIVE_SECRET |
Topia interactive app secret | Yes |
See Environment Variables above.
Topia Production Account Dashboard
The SCENE_IDS environment variable should contain a comma-separated list of scene IDs that the asset will cycle through when clicked.