# Setting default material to AssetContainer or SceneLoader?

**URL:** <https://forum.babylonjs.com/t/setting-default-material-to-assetcontainer-or-sceneloader/39881>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [April 14, 2023, 8:08am UTC](https://forum.babylonjs.com/t/setting-default-material-to-assetcontainer-or-sceneloader/39881 "2023-04-14T08:08:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChirodSummerset](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/chirodsummerset/32/31270_2.png) [@ChirodSummerset](https://forum.babylonjs.com/u/ChirodSummerset)\
**Post date:** [April 14, 2023, 8:08am UTC](https://forum.babylonjs.com/t/setting-default-material-to-assetcontainer-or-sceneloader/39881/1 "2023-04-14T08:08:50Z")

</div>

HI. I noticed the Scene has a property ‘defaultMaterial’, but it seems doesnot affect assetContainers.

Currently I will iterate all meshes in a container after load, if the mesh name matches `__GLTFLoader._default` I set it to my default material.

Is there any way to set it to SceneLoader or something?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 14, 2023, 10:33am UTC](https://forum.babylonjs.com/t/setting-default-material-to-assetcontainer-or-sceneloader/39881/2 "2023-04-14T10:33:35Z")

</div>

Hello! GLTFs are always loaded with a PBR Material as that’s part of their specification
