# How to change the default texture?

**URL:** <https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228>\
**Category:** Questions\
**Created:** [September 25, 2022, 10:30am UTC](https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228 "2022-09-25T10:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DWork](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@DWork](https://forum.babylonjs.com/u/DWork)\
**Post date:** [September 25, 2022, 10:30am UTC](https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228/1 "2022-09-25T10:30:01Z")

</div>

When loading texture url on error will display default style texture, how to change a new one for default?

 ![20220925182530](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/d/bd48cc9f8652ee0b68eb1f45412d41d2a9b8ed7a.png)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [September 25, 2022, 11:09am UTC](https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228/2 "2022-09-25T11:09:46Z")

</div>

You may use `onError` callback in Texture constructor - [Texture | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/BABYLON.Texture#constructor)

Example - [Babylon.js Playground](https://playground.babylonjs.com/#I77Z7E)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 26, 2022, 2:22pm UTC](https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228/3 "2022-09-26T14:22:35Z")

</div>

You can change EngineStore.FallbackTexture = …; to any url you would prefer 🙂

---

<div class="post-metadata">

**Author:** ![DWork](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@DWork](https://forum.babylonjs.com/u/DWork)\
**Post date:** [September 26, 2022, 2:29pm UTC](https://forum.babylonjs.com/t/how-to-change-the-default-texture/34228/4 "2022-09-26T14:29:16Z")

</div>

That‘s so cool 👍 👍 👍
