Unity-Technologies / Unity-Technologies/UnityDataTools
Support SerializedFile v26 (Unity 6.7)
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 821
- Forks
- 71
- Merge medio
- 3 h 13 min
- PR fusionados (30 d)
- 9
Descripción
Unity 6.6 is v23 of the file format.
At end of alpha Unity 6.7 has reached v26, with several significant changes.
kIndependentTypeTreeVersion = 24, // 6000.7: TypeTree blobs are now versioned by their own TypeTreeFormatVersion instead of this enum; TypeTree format changes no longer bump the serialized file version.
kSerializeReferenceRegistryFirst = 25, // 6000.7: the [SerializeReference] registry is a leading frame in the object's data (v3 table format) instead of a trailing TypeTree-described node. Older readers would misparse the frame bytes as field data, so they must reject the file on version.
kSharedSubtreeSupport = 26, // Shared sub-typetree referencing: the file carries a table of compound subtrees stored once, keyed by content hash, that its types reference
This means the "dump", "analyze" commands will not work with the output from Unity 6.7
Most subcommands of the "serialized-file" will also not work (but the "header" command does work, that can be used to see the serialized file version)
Work includes:
- Updating to new snapshot UnityFileSystemApi dll (windows/mac/linux), e.g. take a snapshot from an official build of Unity 6.7 beta.
- Expose the API changes in UnityFileSystemApi through the C# wrapper
- Change the parsing code used by serialized-file command to reflect the updated file format (but continue to support reading older files)
- Add some reference files for automated tests
- e.g. rebuild the UnityProjects/LeadingEdge project with Unity 6.7)
- ideally add refernce files that demonstrate any new features and add specific tests for how this data is exposed
- Make sure docs / comments are updated to reflect the changes, e.g. any docs about TypeTrees should be revisited, and the serialized reference registry change may also influence the example.
- Update UnityDataTools version and create a release for download (along with other fixes).
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con el código de análisis de comandos de serialized-file y el wrapper de C# existente UnityFileSystemApi; después, inspecciona las DLL del snapshot beta de Unity 6.7 en busca de los cambios indicados en la API y el formato de archivo. Vuelve a compilar UnityProjects/LeadingEdge con Unity 6.7 para obtener archivos de referencia, añade cobertura para los nuevos datos manteniendo la compatibilidad con los archivos antiguos y actualiza la documentación y los comentarios mencionados de TypeTree.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, unity
- Área
- devtools, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100