# StandardMaterial needs to be imported

**URL:** <https://forum.babylonjs.com/t/standardmaterial-needs-to-be-imported/17486>\
**Category:** Bugs\
**Created:** [January 14, 2021, 3:47pm UTC](https://forum.babylonjs.com/t/standardmaterial-needs-to-be-imported/17486 "2021-01-14T15:47:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 14, 2021, 4:36pm UTC](https://forum.babylonjs.com/t/standardmaterial-needs-to-be-imported/17486/5 "2021-01-14T16:36:09Z")

</div>

You will need to make sure all meshes have a material right after they are created (or pre-render), otherwise the standard material will be initialized. Technically you would need to make sure that `defaultMaterial` is never accessed.

---

_[View the full topic](https://forum.babylonjs.com/t/standardmaterial-needs-to-be-imported/17486)._
