I’m really struggling so much with this, especially because I can’t seem to find an answer with BP nodes.
I have an array of blueprint actors, all children of the same parent class. Therefore the array is of parent type.
I need to spawn the actors in this array based on their indexes.
To do so, I’m getting the class of my array element using the “Get Class” node and I use the result with the “Spawn Actor by Class” node. I thought that it was going to work, but it’s not. So I tried to print the name of the “Get Class” result and it just prints “Blueprint”.
I thought that it was going to be straightforward, but it’s actually causing me a lot of problems.
It’s an Array of blueprints, as I’m adding them to the Array when I start the game, using Asset Registry functions to retrieve all blueprints in a specific folder.
I mean that when you create a variable, you can set its type to something like a boolean, an integer, a float, or a vector, etc. and you can also set whether it is a single value, an array, a set, or a map. You chose Blueprint as the type, and as an Array.
I’m suggesting you change the definition of the variable so that instead of its type being Blueprint, have its type be TearsBP, but still be an array.