Placing editor actors in a group

I have Editor-only TargetPoint BP actors which are used to spawn instances in the game.


Placing them by hand individually is a bit error-prone.

Is there a way to create a editor tool that will allow the placement of Editor-only BP actors in regular groups? Ideally some box tool which can be scaled to the desired dimensions so the space will be filled with regularly distributed actors.

I have seen something similar done with splines but I wonder if there is a way to specify a resizable box tool and have the placed actors show up as their own objects in the world?

The requirements would be:

  1. The TargetPoint sprites are visible with a surrounding box in the editor
  2. Both individually placed and group-placed TargetPoint objects are retrievable with GetAllActorsOfClass or equivalent in the editor
1 Like

Have you tried using ‘pattern’ in modelling mode?

You can’t place target points, but you can place blueprints with it

Failing that it’s pretty easy to write a blueprint to place many target points in a collision box.

1 Like

Thank you for the suggestion! Unfortunately, it seems the modelling pattern tool doesn’t allow me to place a BP that has only a target point component. It seems to require a mesh. Attaching a mesh to the BP doesn’t duplicate the target point in the pattern.

Failing that it’s pretty easy to write a blueprint to place many target points in a collision box.

Do you have some more guidance on doing this in BP? I want editor only target points that exist as top level members of the world, so what functionality should be used to spawn them when the collision box is placed, moved and scaled?

1 Like

If you specifically want target points, you can make a BP with a construction script like this

In the event graph, also have

Notice the event is callable from the editor

You can change the dimensions independently, and click the editor function when you’re ready

targets2

2 Likes

Thank you! This looks brilliant! I didn’t know about Construction Script.

1 Like

Works just as intended, thanks again!

1 Like

Excellent :star_struck:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.