# Copy material width material plugin console error

**URL:** <https://forum.babylonjs.com/t/copy-material-width-material-plugin-console-error/42055>\
**Category:** Questions\
**Tags:** material\
**Created:** [June 30, 2023, 5:52am UTC](https://forum.babylonjs.com/t/copy-material-width-material-plugin-console-error/42055 "2023-06-30T05:52:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lxq100](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lxq100/32/43689_2.png) [@lxq100](https://forum.babylonjs.com/u/lxq100)\
**Post date:** [June 30, 2023, 5:52am UTC](https://forum.babylonjs.com/t/copy-material-width-material-plugin-console-error/42055/1 "2023-06-30T05:52:50Z")

</div>

Delay 3.5s to copy the material mat1, but the console reports an error, which affects the copying process.

> **[Babylon.js Playground](https://playground.babylonjs.com/#HBWKYN%2315)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 30, 2023, 10:03am UTC](https://forum.babylonjs.com/t/copy-material-width-material-plugin-console-error/42055/2 "2023-06-30T10:03:02Z")

</div>

You should register your plugin in the Babylon class store:

```javascript
BABYLON.RegisterClass("BABYLON.TestMaterialPluginName", TestMaterialPlugin);

```

> **[Babylon.js Playground](https://playground.babylonjs.com/#HBWKYN%2316)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

The doc will be updated to make it explicit:

> <https://github.com/BabylonJS/Documentation/pull/914>
