AssetManger task.loadedMeshes[0].material null

When importing glb/gltf, how can i refer to material?
In my case, these are always null.
Aren’t these modifiable?
(Models DO have material on debug mode)


Can you create a playground with your model imported. It will help to find to problem.

You can see here how to reference your model in the playground

1 Like

I got it.
task.loadedMeshes[0] is
task.loadedMeshes[1] is “cube” (what i need)
What a simple problem!

1 Like

Yes, I wanted to point out that. That’s usual gltf hierarchy, it always has root node, which is not the case with other formats. At least from my experience.

Glad you got it. Cheers

1 Like

Thank you~