# I want dynamic id instead of static mesh id

**URL:** <https://forum.babylonjs.com/t/i-want-dynamic-id-instead-of-static-mesh-id/39818>\
**Category:** Questions\
**Tags:** material\
**Created:** [April 12, 2023, 9:32am UTC](https://forum.babylonjs.com/t/i-want-dynamic-id-instead-of-static-mesh-id/39818 "2023-04-12T09:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NareshKushmakar11](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@NareshKushmakar11](https://forum.babylonjs.com/u/NareshKushmakar11)\
**Post date:** [April 12, 2023, 9:32am UTC](https://forum.babylonjs.com/t/i-want-dynamic-id-instead-of-static-mesh-id/39818/1 "2023-04-12T09:32:28Z")

</div>

I have a mug in which I have applied multiple materials but I want my texture to be applied on a specific material how is it possible

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [April 12, 2023, 10:18am UTC](https://forum.babylonjs.com/t/i-want-dynamic-id-instead-of-static-mesh-id/39818/2 "2023-04-12T10:18:05Z")

</div>

You can assign an ID to your materials, the same way you do with a mesh.  
It’s not a unique ID so different materials can have a same ID.  
This way you can assign a texture to any material with this ID.  
Would that cover your needs?
