{"id":13663881,"url":"https://github.com/Siccity/GLTFUtility","last_synced_at":"2025-04-25T18:31:35.886Z","repository":{"id":37333810,"uuid":"152490993","full_name":"Siccity/GLTFUtility","owner":"Siccity","description":"Simple GLTF importer for Unity","archived":false,"fork":false,"pushed_at":"2023-09-23T19:33:52.000Z","size":28607,"stargazers_count":998,"open_issues_count":119,"forks_count":219,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-10-11T09:50:32.486Z","etag":null,"topics":["gltf","import-and-export","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siccity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-10T21:16:44.000Z","updated_at":"2024-10-10T05:52:37.000Z","dependencies_parsed_at":"2024-01-06T15:31:26.421Z","dependency_job_id":null,"html_url":"https://github.com/Siccity/GLTFUtility","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siccity%2FGLTFUtility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siccity%2FGLTFUtility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siccity%2FGLTFUtility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siccity%2FGLTFUtility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siccity","download_url":"https://codeload.github.com/Siccity/GLTFUtility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250872094,"owners_count":21500765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gltf","import-and-export","unity"],"created_at":"2024-08-02T05:02:39.786Z","updated_at":"2025-04-25T18:31:35.852Z","avatar_url":"https://github.com/Siccity.png","language":"C#","funding_links":[],"categories":["C\\#","C#"],"sub_categories":[],"readme":"[![Discord](https://img.shields.io/discord/361769369404964864.svg)](https://discord.gg/qgPrHv4)\n[![GitHub issues](https://img.shields.io/github/issues/Siccity/GLTFUtility.svg)](https://github.com/Siccity/GLTFUtility/issues)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Siccity/GLTFUtility/master/LICENSE.md)\n\n## GLTFUtility\nAllows you to import and export glTF files during runtime and in editor.\nglTF is a new opensource 3d model transmission format which supports everything you'll ever need from a format in Unity.\n[Read more about glTF here](https://www.khronos.org/gltf/)\n\n![2019-04-01_00-46-27](https://user-images.githubusercontent.com/6402525/55296304-b2aa5880-5417-11e9-89a8-78ab540dc126.gif)\n![image](https://user-images.githubusercontent.com/6402525/55296353-7297a580-5418-11e9-8e76-5078680ee0d3.png)\n![image](https://user-images.githubusercontent.com/6402525/55296436-bd65ed00-5419-11e9-9723-31225b99450b.png)\n\n\n### What makes GLTFUtility different?\nFocusing on simplicity and ease of use, GLTFUtility aims to be an import-and-forget solution, keeping consistency with built-in functionality.\n\n### Installation\n\u003cdetails\u003e\u003csummary\u003eUsing Unity Package Manager (\u003ca href=\"https://docs.unity3d.com/Manual/upm-git.html\"\u003eHelp\u003c/a\u003e)\u003c/summary\u003e\n\n1. `\"com.siccity.gltfutility\": \"https://github.com/siccity/gltfutility.git\"`\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eUsing git\u003c/summary\u003e\n\n1. Get Newtonsoft.JSON from one of these sources\n    * Official upm package: `\"com.unity.nuget.newtonsoft-json\": \"2.0.0-preview\"`,\n    * Unofficial git repo: https://github.com/jilleJr/Newtonsoft.Json-for-Unity\n2. Clone GLTFUtility by itself or as a submodule\n    * Clone into your assets folder `git clone git@github.com:Siccity/GLTFUtility.git`\n    * Add repo as submodule `git submodule add git@github.com:Siccity/GLTFUtility.git Assets/Submodules/GLTFUtility`\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eManual download\u003c/summary\u003e\n\n1. Get [Newtonsoft.JSON](https://assetstore.unity.com/packages/tools/input-management/json-net-for-unity-11347) from the asset store\n2. Download [GLTFUtility-master.zip](https://github.com/Siccity/GLTFUtility/archive/master.zip) and extract to your project assets\n\u003c/details\u003e\n\n[Important notice](https://github.com/Siccity/GLTFUtility#Important-shader-note)\n\n### Features\n*System*\n- [x] Editor import\n- [ ] Editor export\n- [x] Runtime import API\n- [ ] Runtime export API\n- [x] GLTF format\n- [x] GLB format\n- [x] Multithreading\n- [x] URP [#75](https://github.com/Siccity/GLTFUtility/issues/75)\n- [ ] HDRP [#73](https://github.com/Siccity/GLTFUtility/issues/73)\n- [ ] LWRP\n\n*Spec*\n- [x] Static mesh (with submeshes)\n- [x] UVs (up to 8 channels)\n- [x] Normals\n- [x] Tangents\n- [x] Vertex colors\n- [x] Materials (metallic/specular, opaque/mask/blend)\n- [x] Textures (embedded/external)\n- [x] Remote textures (during async only)\n- [x] Rig\n- [ ] Avatar/Mask [#70](https://github.com/Siccity/GLTFUtility/issues/70)\n- [x] Animations (multiple)\n- [x] Morph targets (with experimental names)\n- [x] Cameras\n\n*Extensions*\n- [x] KHR_texture_transform (partial support)\n- [x] KHR_materials_pbrSpecularGlossiness \n- [ ] KHR_lights_punctual [#25](https://github.com/Siccity/GLTFUtility/issues/25)\n- [x] KHR_draco_mesh_compression [#27](https://github.com/Siccity/GLTFUtility/issues/27) WARNING: Said to cause issues on WebGL.\n- [x] KHR_mesh_quantization\n\n### Known issues\n* `ArgumentNullException: Value cannot be null` in build but not in editor.\n  * This is most likely due to shaders being stripped from the build. To fix this, add the GLTFUtility shaders to the Always Included Shaders list in Graphic Settings.\n* Draco compression does not work on iOS and UWP\n  * More info on [#133](https://github.com/Siccity/GLTFUtility/issues/133)\n\n### Runtime import API\n```cs\n// Single thread\nusing Siccity.GLTFUtility;\n\nvoid ImportGLTF(string filepath) {\n   GameObject result = Importer.LoadFromFile(filepath);\n}\n```\n```cs\n// Multithreaded\nusing Siccity.GLTFUtility;\n\nvoid ImportGLTFAsync(string filepath) {\n   Importer.ImportGLTFAsync(filepath, new ImportSettings(), OnFinishAsync);\n}\n\nvoid OnFinishAsync(GameObject result, AnimationClip[] animations) {\n   Debug.Log(\"Finished importing \" + result.name);\n}\n```\n\n### Important shader note\nTo ensure that Unity includes the GLTFUtility shaders in builds, you must add these shaders to the 'Always Included Shaders' list.\n\n1. Open Edit -\u003e Project Settings\n2. Open Graphics\n3. Scroll to Always Included Shaders\n4. Under Size, increase the value by 4 and hit Enter.\n5. In the Project panel, navigate to Packages/GLTFUtility/Materials/Built-in.\n6. In this directory are 4 .shader files.\n7. Drag and drop each of the 4 files into one of the 4 newly created rows in Always Included Shaders.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiccity%2FGLTFUtility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSiccity%2FGLTFUtility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiccity%2FGLTFUtility/lists"}