UPROPERTY member vars reset to NULL by ObjectInitializer

Confirming - there still this problem. The code which was working for a long time suddenly got broken and my object becomes creating with fields reinitialized by default object.

The fix proposed in this thread does solve my problem. In my case:

  1. Just reparent your BP class to the basic UE (AActor in my case)

  2. Compile / save. Your BP class may become broken - it’s OK.

  3. Restart editor

  4. Reparent you BP class to the correct basic class

  5. Compile / save. Say Halleluya!

3 Likes