Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 2.28 KB

File metadata and controls

37 lines (29 loc) · 2.28 KB

UnityGLTF Interactivity Plugin

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.

How to use this repository

Downloading the code

  1. Clone this repository with a git client
  2. Ensure that all submodules are cloned as well: UnityGLTF and the UnityGLTF Interactivity Plugin).

Opening and preparing the project

  1. Open the Interactivity-2022.3 project. It currently uses Unity 2022.3.46f1.
  2. Open Edit > Project Settings > Visual Scripting
  3. Click Regenerate Nodes
  4. Ensure that the KHR Interactivity Plugin is enabled in Resources/UnityGLTFSettings.

Opening a scene and exporting an interactive GLB file

  1. Open Test Scenes – for example, Assets/Test Scenes/TrafficLight.unity
  2. Some test scenes contain multiple variants of the same scene. Select the variant you want to export, for example TrafficLight_Simple.
  3. Right-click on it and select UnityGLTF/Export selected as GLB
  4. Choose and confirm where to store the exported GLB file.

Running the interactive GLB in your browser

  1. Open https://gltf-interactivity.needle.tools in your browser
  2. Scroll down, ensure the Babylon Engine is selected.
  3. Pick your exported GLB file in the Upload selector.
  4. The interactive scene will be displayed at the bottom of the screen, and the graph will be displayed at the top.
  5. The graph is also editable when changes are needed.

Further reading