Extension support is incomplete

Abierto
#661 6 comentarios 1 reacción 1 asignado Ver en GitHub

@robertdorn83 ya está trabajando en esto.

Desde el 4/3/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

I might be holding this wrong, but it looks like support for extensions is incomplete and documentation around extensions is lacking.

There is an ExtensionFactory and IExtension interface exposed, and users can register their own callbacks for extensions; however, these seem to have only exposed a Serialize() and Deserialize() method to read/write the extension data - it seems there's no callback to associate the data with a GameObject (i.e. to do anything useful with the extension data.)

The GLTFSceneImporter class has hardcoded a specially-privileged "MSFT_LOD" extension - this is an indication that the extension support is not good enough. There should be sufficient callbacks in the importer to do this without having to modify the importer.

At the very least, there should be a sample which shows how users can register and use custom extensions to add their own MonoBehaviour to GameObjects.

Lenguaje dominante
C#
Estrellas
2.3k
Forks
539
Merge medio
3 d 15 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de KhronosGroup/UnityGLTF

Todos los issues de KhronosGroup/UnityGLTF

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.