How to get the first string in an array and convert it to a class

Hey guys, i’m fairly new to unreal engines blueprint scripting but i kinda got the idea because i used to code with scratch a few years ago.

I’m currently making a system that spawns actors after you buy them but if one is already spawned i would like to queue the next 6 purchases to spawn after the spawned actor is picked up.

I added every actor that was bought after an item was spawned to an array that i then plan on using to plug into the class reference of the spawn actor node, (I need the first array in the array variable to be the one that spawns.

The issue i ran into was that while i could get the name of the class i purchased and add it to a list, i could not get the array to convert back into a class and plug it into the spawn actor node.

I hope what i said was clear, like i said i am pretty n




ew to blueprints so if it wasn’t clear just ask a few more questions and i will do the best to answer properly. Thanks!!!

You cannot get a class from the name. It would be best if you had a path.
However, you could find the class by name using assets iteration. Make sure that only one asset in the project has this name.

My Products