viya3d
:: Guide ::

How to Import a GLB File into Unity

Unity can't open .glb files on its own. Install the free glTFast package, drop the GLB into Assets, and fix common scale and material issues.

Unity's built-in model importer reads FBX, OBJ, DAE and DXF, but not glTF. To use a .glb or .gltf file you add glTFast, Unity's own free glTF package. After that, a GLB imports like any other model.

1. Install glTFast

  1. Open your project and go to Window → Package Manager.
  2. Click the + button in the toolbar.
  3. Choose Install package by name… (called Add package by name… in older Unity versions).
  4. Enter com.unity.cloud.gltfast and click Install.

Unity installs the latest version and its dependencies. glTFast works with the Universal, High Definition and Built-in render pipelines.

2. Import the GLB

  1. Drag the .glb file into the Assets folder in the Project window.
  2. Unity imports it as a prefab-like asset. Drag it into the scene.

For a .gltf file, copy the .gltf, its .bin and all its texture images into the same folder, so the references inside the file still resolve.

3. Check it imported correctly

  • Size: glTF is always in metres, and so is Unity, so a 1.8 m character should be 1.8 units tall. If it is 100× too big or small, the file was made in the wrong units: fix it with the scale & pivot fixer and import again.
  • Origin: if the model floats above the floor or sinks into it, its origin isn't at its base. The same fixer can move it to the bottom centre.
  • Materials: glTFast creates materials for your project's render pipeline. If a model shows pink, its shader doesn't match the pipeline: check the project's render pipeline setting and reimport the file.
  • Textures: if they are missing on a .gltf, a texture file wasn't copied next to it. A .glb has its textures inside and avoids this.

Before importing, you can check a file for all of these in the engine import checker, which runs the official Khronos glTF Validator plus Unity-specific checks.

Compressed GLBs

glTFast can read GLBs compressed with Draco and Meshopt, and textures in KTX2, but each needs an extra decoder package. If a compressed file fails to load, install the decoder the import checker lists under "required extensions", or re-export without compression.

Should I use FBX instead?

FBX imports into Unity with no package, so it can be simpler for a team already using it. GLB keeps PBR materials and textures in one file and is the same file you'd use for the web or Godot. See GLB vs FBX vs OBJ for the trade-offs.

Too heavy for mobile?

Check the triangle count and texture memory in the poly count & VRAM checker, then bring it down with the polygon reducer and the texture resizer.

Models from viya3d come out at real-world scale with the origin at the base, and the Unity export includes a README with these steps.