Import assets from UnityPackage files into Godot
GDScript
693
49 commits
updated Sep 16, 2023


res://FBX2glTF (with .exe on Windows)
res://unitypackage_util (with .exe on Windows)
./FBX2glTF --help and ./unitypackage_util --help from command line, to check permissionsres://unitypackage_godot_config.tres
res://unitypackage_godot/scenes/main.tscnImmediate Load Assets in res://unitypackage_godot_config.tres to only load what is opened in the UI*.unity files are converted if they are manually loaded in the UIufile_ids, containing a list of {guid}:{component} values mapping back to the original Unity component.Initial setup:
res://unitypackage_godot_config.res
.unity files must be manually selected to build either wayImport UnityPackage:
Import UnityPackage button in upper left.unitypackage fileres://imports/
catalog.json as a cached file to load faster next runlocation.txt pointing to where the UnityPackage file is locatedFixing Import Code:
res://imports/
OS.execute is used to call unitypackage_utilunitypackage_util {PACKAGE} dump retrieves all the packed file dataunitypackage_util {PACKAGE} extract {GUID} --json is used to extract individual yaml files as jsonunitypackage_util {PACKAGE} extract {GUID} --fbx2gltf --base64 is used to extract fbx files, converted to glb, in base64 formatExtract Path folder.Original shaders are stored in .txt files along-side new placeholder shaders.
Uniforms from the original shader are copied into the placeholder so materials maintain their shader properties.
Shader property values are also set as meta data on the materials as backup.
Components:
Importers:
See: https://github.com/barcoderdev/unitypackage_godot/issues
967 followers · starred May 2023
5,294 followers · starred Nov 2024
130 followers · starred May 2023
376 followers · starred May 2023
Import assets from UnityPackage files into Godot
GDScript
693
49 commits
updated Sep 16, 2023


res://FBX2glTF (with .exe on Windows)
res://unitypackage_util (with .exe on Windows)
./FBX2glTF --help and ./unitypackage_util --help from command line, to check permissionsres://unitypackage_godot_config.tres
res://unitypackage_godot/scenes/main.tscnImmediate Load Assets in res://unitypackage_godot_config.tres to only load what is opened in the UI*.unity files are converted if they are manually loaded in the UIufile_ids, containing a list of {guid}:{component} values mapping back to the original Unity component.Initial setup:
res://unitypackage_godot_config.res
.unity files must be manually selected to build either wayImport UnityPackage:
Import UnityPackage button in upper left.unitypackage fileres://imports/
catalog.json as a cached file to load faster next runlocation.txt pointing to where the UnityPackage file is locatedFixing Import Code:
res://imports/
OS.execute is used to call unitypackage_utilunitypackage_util {PACKAGE} dump retrieves all the packed file dataunitypackage_util {PACKAGE} extract {GUID} --json is used to extract individual yaml files as jsonunitypackage_util {PACKAGE} extract {GUID} --fbx2gltf --base64 is used to extract fbx files, converted to glb, in base64 formatExtract Path folder.Original shaders are stored in .txt files along-side new placeholder shaders.
Uniforms from the original shader are copied into the placeholder so materials maintain their shader properties.
Shader property values are also set as meta data on the materials as backup.
Components:
Importers:
See: https://github.com/barcoderdev/unitypackage_godot/issues
967 followers · starred May 2023
5,294 followers · starred Nov 2024
130 followers · starred May 2023
376 followers · starred May 2023