# How to spawn a BP actor from a string path?

**URL:** <https://forums.unrealengine.com/t/how-to-spawn-a-bp-actor-from-a-string-path/489768>\
**Category:** Blueprint\
**Tags:** spawn-actor-from-cla, spawn-actor, unreal-engine, Blueprint, question\
**Created:** [October 11, 2021, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-spawn-a-bp-actor-from-a-string-path/489768 "2021-10-11T17:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew-r-lukasik](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew-r-lukasik/32/780005_2.png) [@andrew-r-lukasik](https://forums.unrealengine.com/u/andrew-r-lukasik)\
**Post date:** [October 11, 2021, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-spawn-a-bp-actor-from-a-string-path/489768/1 "2021-10-11T17:57:11Z")

</div>

Q: I want to spawn blueprint actors by their file path, but how to do that exactly?

I found this [GetAssetbyObjectPath][1] action. I give it a valid path ( `/Game/MyDir/MyClass.MyClass`) and it gives me a object reference. When I call `GetAsset` and `GetClass` on it - it prints `Blueprint`… where I expected an `Actor` or `Object`. How to make this work, any ideas?

 ![350208-screenshot-2021-10-11-191257.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/a/c8ab318f90e452d171bc04a002da3e75b4c22f48.jpeg)

---

<div class="post-metadata">

**Author:** ![andrew-r-lukasik](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew-r-lukasik/32/780005_2.png) [@andrew-r-lukasik](https://forums.unrealengine.com/u/andrew-r-lukasik)\
**Post date:** [October 11, 2021, 7:05pm UTC](https://forums.unrealengine.com/t/how-to-spawn-a-bp-actor-from-a-string-path/489768/2 "2021-10-11T19:05:00Z")

</div>

Case solved.

 ![350213-screenshot-2021-10-11-210322.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/1/0115e14339e019528d33d89157bd9c616cf18348.jpeg)

Tiny pink node is `ToSoftClassReference`.
