Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KHR_interactivity #824

Open
wants to merge 74 commits into
base: dev
Choose a base branch
from
Open

Add KHR_interactivity #824

wants to merge 74 commits into from

Conversation

hybridherbst
Copy link
Collaborator

@hybridherbst hybridherbst commented Mar 10, 2025

This PR adds support for KHR_interactivity, KHR_node_hoverability and KHR_node_selectability as per the specification from Mar 10 2025. The bulk of the implementation work has been done by @pfcDorn and me.

Usage

These extensions are not ratified by Khronos yet, so their implementation details might still change substantially. The KHR_interactivity plugin is disabled by default; to enable it follow these steps:

  1. Install the package com.unity.visualscripting
  2. Enable the plugin in UnityGLTFSettings

Interactive scenes can be exported from Visual Scripting script machines. Once the plugin is enabled, script graphs will display hints per node on whether that node can be exported or not. All major visual scripting features should be supported (variables, custom events, subgraphs). If you run into unsupported nodes that you feel should be supported, please open an issue.

Testing

An assortment of ~30 sample files exported with this extension via UnityGLTF can be found here: https://drive.google.com/drive/folders/159YUuZ_DH7_zYBJDU2jh4zcWlxGJX_sg

These files can currently be loaded in

Commit History

For this PR, changes have been moved over from a separate repository. The original history can be seen at https://github.com/needle-tools/UnityGLTF-Interactivity.

Copilot

This comment was marked as resolved.

@pfcDorn pfcDorn force-pushed the extensions/KHR_interactivity branch 3 times, most recently from 956b1b1 to 3859ab2 Compare March 12, 2025 18:54
@pfcDorn pfcDorn force-pushed the extensions/KHR_interactivity branch from 20b69b7 to e8a5ada Compare March 26, 2025 12:16
pfcDorn added 24 commits March 27, 2025 12:01
…splay the export support in the graph editor
…ral is connected as an input in the parent graph
@pfcDorn pfcDorn force-pushed the extensions/KHR_interactivity branch from faebdc6 to 75512f6 Compare March 27, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants