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!
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
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).