Actor reference in actor component is cleared after actor class compiling

Actor component clears actor reference to actor of class where used this component after actor class compilation.

Repro Steps:

  1. Create actor component blueprint and add Actor Reference variable;
  2. Create pawn blueprint and add created actor component;
  3. Place this pawn into a level;
  4. Set the variable in the actor component to himself or another instance of this class;
  5. Make any change in the pawn’s blueprint, press Compile;
  6. The variable from step 4 was cleared.

In Example Project, on TestLevel two snowmans. BrokenSnowman’s TestActorComponent contains reference to Snowman. After adding any node to TestPawn and compiling, the reference in BrokenSnowman is cleared.

The bug can be reproduced in 4.18.1, 4.18.2.

Tested it out on the project provided and my own Project. Reproducabale. But I want to add a additional Piece of Information.

It happens only if you refference is of the same Type as self. In the Example above the Variable will Reset to None if the refference is also a Snowman. It will not derefference if it refferences something else like the Floor, Skylight, etc.

Somewhere during the Compiling Process, or refresh of the Actors in the Scene the System is Confused that the thing we refference is also the thing we currently Updating.

Hello ReeJK

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 future updates.

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

Make it a great day