# How to get asset material slot name using blueprints?

**URL:** <https://forums.unrealengine.com/t/how-to-get-asset-material-slot-name-using-blueprints/768323>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [February 10, 2023, 10:46pm UTC](https://forums.unrealengine.com/t/how-to-get-asset-material-slot-name-using-blueprints/768323 "2023-02-10T22:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SLiMsnt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SLiMsnt](https://forums.unrealengine.com/u/SLiMsnt)\
**Post date:** [February 10, 2023, 10:46pm UTC](https://forums.unrealengine.com/t/how-to-get-asset-material-slot-name-using-blueprints/768323/1 "2023-02-10T22:46:23Z")

</div>

How can I get an Asset “Material Slot Name” using Editor Utility Blueprint? I can get “Material Name” and “Material Slot Index” by casting selected asset to StaticMesh, but I can’t get material slot name. Get Material Slot Names node target is Mesh Component, but if I try to cast to Mesh Component the cast fails.

Thank you very much for any help!

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 11, 2023, 3:57pm UTC](https://forums.unrealengine.com/t/how-to-get-asset-material-slot-name-using-blueprints/768323/2 "2023-02-11T15:57:59Z")

</div>

Try this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/9/789b24853a2da9e4b0a1cd5f4184daff79f165a5.png)

[My Products](https://www.unrealengine.com/marketplace/en-US/profile/Aleksandr+Sidorov)

---

<div class="post-metadata">

**Author:** ![SLiMsnt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SLiMsnt](https://forums.unrealengine.com/u/SLiMsnt)\
**Post date:** [February 12, 2023, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-get-asset-material-slot-name-using-blueprints/768323/3 "2023-02-12T20:50:37Z")

</div>

Thank you very much!! I’ve tried “Get Static Materials” but forgot to try breaking it! This worked like a charm!
