Warning
This code is currently undergoing a lot of changes. Feel free to test and open issues, but please don't use it in production. Both the specification and the implementation will continue to change.
- Clone this repository with a git client
- Ensure that all submodules are cloned as well: UnityGLTF and the UnityGLTF Interactivity Plugin).
- Open the
Interactivity-2022.3
project. It currently uses Unity 2022.3.46f1. - Open
Edit > Project Settings > Visual Scripting
- Click Regenerate Nodes
- Ensure that the KHR Interactivity Plugin is enabled in
Resources/UnityGLTFSettings
.
- Open Test Scenes – for example,
Assets/Test Scenes/TrafficLight.unity
- Some test scenes contain multiple variants of the same scene. Select the variant you want to export, for example
TrafficLight_Simple
. - Right-click on it and select UnityGLTF/Export selected as GLB
- Choose and confirm where to store the exported GLB file.
- Open https://gltf-interactivity.needle.tools in your browser
- Scroll down, ensure the Babylon Engine is selected.
- Pick your exported GLB file in the Upload selector.
- The interactive scene will be displayed at the bottom of the screen, and the graph will be displayed at the top.
- The graph is also editable when changes are needed.