Attach to Component does not have the intended behaviour when attaching an actor component. Static mesh components do work correctly. As can be seen in the video the actor has the intended behaviour when using Attach to Component on a Static Mesh Actor (The actor reparents, and snaps to the actor locations), but when changed to Actor the actor no longer changes parent and does not move to the correct location with Snap to Target.
Video:
Steps to reproduce:
1. Create an empty actor class
2. Place two of these in the level
3. Create new blueprint class from the Static Mesh Actor class
4. Recreate the construction script from the image that was linked to this post, in the class created in step 3 (Get all actors of class should get the class created in step 1)
5. Make sure the Is1 bool is accessible in editor
When toggling the Is1 variable in editor, the Static Mesh Actor jumps between the location of the two actors as expected.
6. Reparent the Static Mesh Actor to Actor
When toggling the Is1 variable in editor, the Actor moves away from the actor locations with each toggle. It also remains childed to the first actor it was childed to.