AssetManger task.loadedMeshes[0].material null

Hi
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)

Hi.

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
https://doc.babylonjs.com/resources/external_pg_assets

1 Like

I got it.
task.loadedMeshes[0] is
"__root__"
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~