# Actor BP - how can I create a mesh from it's name (string)?

**URL:** <https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [December 27, 2021, 12:06pm UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579 "2021-12-27T12:06:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [December 27, 2021, 12:06pm UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/1 "2021-12-27T12:06:33Z")

</div>

Hi,

So far I use a switch case but I thought I could use Set Static Mesh Path

> **[Set Static Mesh Path Name](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Datasmith/Element/SetStaticMeshPathName/)**
>
> Set Static Mesh Path Name

but it does not appear (see image)

**Is there a way to create a static mesh from its name ?**

thanks for your help

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/d/1d28bab14e7eb054f54743161332f10dcb5fb386.png)

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [December 27, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/2 "2021-12-27T18:08:19Z")

</div>

Try GetAssetRegistry-\>GetAssetByObjectPath-\>Cast To Static Mesh.  
You can get the object path by right clicking the asset-\>“Copy Reference”.

> **[UE4 - Get Assets by Path in Blueprints with the AssetRegistry - Isara Tech.](https://isaratech.com/ue4-get-assets-by-path-in-blueprints-with-the-assetregistry/)**
>
> Using the AssetRegistry, we can programmatically get references to assets at runtime, allowing us to instantiate them at runtime. This tutorial shows how it's done.

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [December 28, 2021, 8:08am UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/3 "2021-12-28T08:08:10Z")

</div>

> [@Limanima](#):
>
> Cast To Static Mesh

is not available

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/9/593a9f04c8f81dd509e04d423f522797b0f68672.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/a/5ad68e146c152cdf3eb16a3f34f7735493328c1c.png)

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [December 28, 2021, 9:43am UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/4 "2021-12-28T09:43:31Z")

</div>

Use “Get Asset”.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/b/ab56a8fc03b180669e65a1c2183e9f6d1000b971.png)

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [December 28, 2021, 6:53pm UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/5 "2021-12-28T18:53:18Z")

</div>

YES !!!  
thank you so much !!

---

<div class="post-metadata">

**Author:** ![Paul\_Eckhardt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paul\_Eckhardt](https://forums.unrealengine.com/u/Paul_Eckhardt)\
**Post date:** [March 14, 2026, 2:16am UTC](https://forums.unrealengine.com/t/actor-bp-how-can-i-create-a-mesh-from-its-name-string/268579/6 "2026-03-14T02:16:20Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/c/ccc7dfe29de99d1969252a11112a9eed1b9790ad.png)

This thread was helpful, but I wasn’t able to get things working in 5.6, here is how I set it up. in 5.6

I’m not sure why /game/path/assetname.assetname works. Why the .assetname?
