Get Asset path from actor

Hello,

I am trying to get the asset from an actor. I am using the OnLevelActorAdded(AActor* Actor) function and I want to get the path + name of the asset that it has. I want it to work for any kind of asset (particles, meshes etc…). Other methods how to notice when an actor is created with its assets is also welcome!

Note: I am creating an editor plugin.

Thanks!

Does anyone know?

#BP Node For You From Me

I recently added BP nodes to my Victory BP Library to get an object’s asset path as well as to create an object from an asset path!

Rama

I indeed found your code (A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums) which works great! Thanks!

“Load Object from Asset Path” fails to get a “Primary data asset”, can you fix that, please?
https://i.imgur.com/ayl4Mtn.png

For Blueprint asset this method not work.