An open API service indexing awesome lists of open source software.

https://github.com/coderofsalvation/aframe-verse-component-scripts

allow certain (external) aframe to load scripts during immersive navigation #aframe-verse
https://github.com/coderofsalvation/aframe-verse-component-scripts

Last synced: about 1 year ago
JSON representation

allow certain (external) aframe to load scripts during immersive navigation #aframe-verse

Awesome Lists containing this project

README

          

![](https://github.com/coderofsalvation/aframe-verse/raw/main/.img/demo.gif)

An extension for the [aframe-verse component](https://github.com/coderofsalvation/aframe-verse) which allows specific aframe experiences to load (trusted) scripts.

# Usage

Allow certain urls in [aframe-verse.json](https://github.com/coderofsalvation/aframe-verse/aframe-verse.json) to load scripts by adding `scripts:true`:

```json
{
destinations:[
...
{url:"./app3.html", scripts:true},
{url:"https://trustedfriend.com/game.html", scripts:true},
]
}
```

> Advice: don't trust things you should'nt trust :heart:

Just add the `scripts` attribute to your cluster-client ([index.html](https://github.com/coderofsalvation/aframe-verse/blob/main/apps/index.html)):

```

```

Then `game.html` or `app3.html` will have to include their scripts inside the `aframe-verse`-block:

```html