Attach to Component not working correctly on Actors in construction script

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.

Hello ,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for further consideration. Thank you for your time and information.

Link: Unreal Engine Issues and Bug Tracker (UE-39709)

Make it a great day

The bug was marked as cannot reproduce :c

In this instance, it appears that this issue was resolved on an internal build and can no longer be reproduced. This solution will be available in a later release of the engine.