How to spawn an actor by giving the name of the class using BP?

Well, I have a Catalog of more than 150 articles, but I want to do a seeker that just write the item name, and spawn it at runtime.

As you can see I can’t figure out how to convert String value in Class Value :frowning:

Any help will be so appreciated

Select it, and spawn the Big_Red_Table model.

Hi. I’ve made a tutorial who could be very usefull with your 150 item. Hope it’ll help.

Create a class variable that has the parent class of those class you want to spawn. You have to specify somewhere what class corresponds to that string. Like a DataTable or an array using a struct with string and class values.

Thank you very much dear Denis,

I already watched your tutorial and found it very useful, but I realize that is a need to fill the data table with all variables (I mean, I need to know previously what meshes/classes I have). My problem is I just send a update (patch) with new articles to my application, but I don’t know previously what articles I’m going to send, and because of business rules, I have no time to fill the data tabla with all the names. Is there a way to fill the data table with all the clases of my project? This would solved definitely my problem.

Wow, I really appreciate your time for doing this.

Hi, Based on what I know. There 2 way to fill your data sheet with all your item. 1. Like I did in the editor. or 2. use a Excell sheet and import it in your project as data sheet. But yes you still have to write it down all the item one by one.But for now like I said. based on what I know. may be someone else could have a better option.

Denis, I thank you too much, your help has been so useful, I’m working with your tutorial and going to prove with CSV files.

Definitely you gave me one week less job

Glad to hear it helped you out.