I have a Blueprint with a series of For Each Loops that goes through an array of a 3D object blueprint.
Then I duplicate both the parent Blueprint and the 3D object with a new name.
Now when I change the object type in the array, I have to redo all the For Each Loops manually as they don’t match anymore to the object type. Is there an automated way of doing this?
Overall everything is identical, so if I’m thinking code-wise, I would just do a search and replace to the object name, but with Blueprints I’m not sure it’s possible.
In Unreal Engine, you can use the “Convert Selected Actors to Blueprint Class” feature to create a new Blueprint based on an existing set of actors (including your duplicated 3D objects) and their associated logic. This can be a useful way to duplicate your logic and update references to the object type without having to manually redo all the For Each Loops.
Here is an example of what I mean:
This is when I duplicate my parentBP and change the array type to the duplicated object,
for each of these I have to
1- disconnect the for loop from both sides
2- reconnect the array
3-regrab the material
4- reconnect the connections