How to spawn object while looping through all elements of a datatable?
I'm following a solution in this question for looping through row in a data table https://answers.unrealengine.com/questions/160783/is-there-a-better-way-to-loop-through-all-elements.html. It works perfectly.
My question would be how do i set it so that instead of printing the row name, it will spawn an actor/object for each row found?
I assume you want the data table to define what kind of actor to spawn. I would include the class name of the object you'd like to spawn in your data table (as type Actor Class Reference). Then that would appear in your Break Row node the same as Age/Gender/Job/Meshes in the screenshot you attached. You can plug that into a Spawn Actor from Class node and it will create the Actor from the Class Reference in your table.
answered Aug 11 '17 at 06:38 PM
With the Spawn Actor from Class node.
answered Aug 12 '17 at 01:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here