# How to get reference to "Content Asset" from "Level Asset" in Editor Utility Blueprint (Blutility)?

**URL:** <https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077>\
**Category:** Blueprint\
**Tags:** editor-utility-widge, Blueprint-Utilities, Blutilities, unreal-engine, FeatureRequest, question, Blueprint\
**Created:** [September 9, 2020, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077 "2020-09-09T14:29:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AliAmanzadegan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AliAmanzadegan](https://forums.unrealengine.com/u/AliAmanzadegan)\
**Post date:** [September 9, 2020, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/1 "2020-09-09T14:29:10Z")

</div>

Hello All,

I want to **get reference** (or get full path) of an static mesh asset from “Static Mesh Actor” in a map.

We can see a magnifier icon in Detail Panel of “Static Mesh Actor” (in static mesh category) shown in below image  
this is simply open containing folder of assigned static mesh!

![312959-1-detail.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/9/bf93efe6da9d5030888275f6f3b1dbef7293b732.png)

The question is:  
How to get address of assigned static mesh to an actor!

I search the internet and can not find any answer.  
I try many solution,  
Get Path Name: return “level asset” path so cannot be used as Asset Path of “Load Asset” function

 ![312960-2-func.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/5/b354074efbfc73282a16d6f8d6085d88bca04182.png)

for some person who may asked why do you need this, I explain the problem:

We want an script (or something similarily) to automatically copy assigned material from static mesh actor (in level) to StaticMesh (in game content)

 ![312971-3-all.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/2/ba23c0b72c9da244205e87f104494e94539c137a.jpeg)

As shown in upper image, Wall\_008 (level asset) has an orange material and Content Asset (Static Mesh in Right of Image) has a white material.

Thank you in advance for any help

---

<div class="post-metadata">

**Author:** ![shipster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shipster](https://forums.unrealengine.com/u/shipster)\
**Post date:** [September 9, 2020, 6:04pm UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/2 "2020-09-09T18:04:59Z")

</div>

I dont know if I know exactly what you want.  
But from what I guess you want, you could try something like this:

 ![312986-staticmeshpath.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/5/b155557b9db2873fac5a7be7fdb28899b4bed2a6.png)

You might have to enable the editor scripting utilities plugin.  
Obvioulsy the solution is not perfect, since I only get the first material from the array, but you can think of a logic to assign multiple materials by simply looping (or keeping track of the slot number in the first place).

---

<div class="post-metadata">

**Author:** ![AliAmanzadegan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AliAmanzadegan](https://forums.unrealengine.com/u/AliAmanzadegan)\
**Post date:** [September 12, 2020, 7:14am UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/3 "2020-09-12T07:14:57Z")

</div>

First of All thank you for your answer, I really appreciate that.

But I want to Get All Actors and fetch reference to their asset, you get SELECTED ACTOR and then get SELECTED ASSETS!

In your solution the actor must be selected from level and also asset must be selected from content browser MANUALLY!

I want to do this automatically (not selecting Item manually)

by the way Thank you.

---

<div class="post-metadata">

**Author:** ![shipster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shipster](https://forums.unrealengine.com/u/shipster)\
**Post date:** [September 12, 2020, 3:39pm UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/4 "2020-09-12T15:39:56Z")

</div>

Then, instead of “Get all selected level actors” use the following node:

![313312-getallactors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/c/a0c1461b29abb91b8c8e9085a9c32fe7b59182a3.png)

---

<div class="post-metadata">

**Author:** ![baikgyul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baikgyul](https://forums.unrealengine.com/u/baikgyul)\
**Post date:** [September 13, 2022, 3:39am UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/5 "2022-09-13T03:39:48Z")

</div>

hey, did you find any solution?

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [November 19, 2022, 9:36am UTC](https://forums.unrealengine.com/t/how-to-get-reference-to-content-asset-from-level-asset-in-editor-utility-blueprint-blutility/471077/6 "2022-11-19T09:36:23Z")

</div>

The solution is to get the soft reference of the static mesh, load the asset and apply the material to it, then save the asset.

 ![Save Asset](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/b/90bfce443ef6d7fdb320c63a6f87fd047a21279a.png)
