Moving a group of actors through code/blueprints

Hi,

I know that UE4 lets you create a “group” of actors by selecting them, right clicking, and choosing “Group”. This enables you to transform or duplicate them together as if they were a single object.

My question is, is it possible to transform groups through blueprints or code, just as you would in the editor? Like if I create a structure with geometry brushes, and then group them together in the editor, can I then move that structure programmatically somehow, such as when the player presses a button?

Unfortunately you can’t, but you can add a tag to your object in the scene, and then get all actors in the scene that have the tag you assigned and move them, however depending on how often you do that in the scene, and depending on the number of actors you are trying to modify, this might not be efficient.

Another way would be to group those actors by simply adding them to a blueprint element

Since I was using geometry brushes, I ended up just converting those into a static mesh. Worked out fine for me, although it wasn’t exactly the solution I was initially looking for.