Skip to Content

Adding GLTF Content

This guide describes how to create and configure a GLTF-based Anchor within a Block.

Prerequisites

  • A valid .gltf or .glb file URL.
  • The target Block already exists in the Unity Hierarchy.

Procedure

  1. Create an Empty GameObject under the Block Root

    In the Unity Hierarchy, create a new Empty GameObject as a child of the Block Root.

    Alt Text

  2. Add the Gltf Anchor Editor component

    Select the newly created GameObject and add the Gltf Anchor Editor component.

    Alt Text

  3. Enter the GLTF URL

    Provide the URL of the .gltf or .glb file in the Media.Url field.

  4. Configure the Group field

    Assign an appropriate value to the Group property for logical organization.

  5. Click Save and wait for the content to load

    After saving, the GLTF model will be downloaded and instantiated in the scene.

    Once loaded, you can modify the Anchor’s Transform, including:

    • Position
    • Rotation
    • Scale
  6. Configure animation (if available)

    After clicking Save, click Fetch to retrieve the list of available animations (if the GLTF contains animations).

    Copy the desired animation name into the Animation field, then click Save again to apply it.

    Alt Text


ℹ️ Info
If no animations appear after clicking Fetch, the GLTF file may not contain embedded animation clips.

⚠️ Warning
Ensure the animation name matches exactly (case-sensitive). An incorrect name will prevent the animation from playing at runtime.

Last updated on