Editing an actor in the editor during playback causes variables held by the actor to be null

It can be reproduced by following these steps.

  1. Create a Blueprint class (ParamBP) that inherits from Object.
  2. Create a new Blueprint class (Test) that inherits from Actor.
  3. Add ParamBP’s variable param to Test’s Variables.
  4. In the BeginPlay event, create ParamBP with construct from class and set it to the
    variable param
  5. Place Test actor in the level.
  6. Execute playback and select Test from worldOutliner
  7. From Details of the Test, change the x-coordinate of the Transform, etc.
  8. param will be null.

It is common to change the position or settings of an object during playback.
What are the measures to be taken?

I think you’ll find that using the editor to move or change objects during game play, will lead to everything being set back as it was before play, on exit.

I don’t think making manual changes in the editor during play is supported.

I understand.
Thank you very much!

1 Like