Instanced child's inherited variables reset on change of child

A bug with Instanced child actors with inherited, exposed variables.

  1. Create an Actor BP, call it A.
  2. Open A, add an int variable, make it editable and expose on spawn.
  3. Create a child of A.
  4. Open child and add an int variable, make it editable and expose on spawn.
  5. Place the child in the map and set the parents variable to 10 and the childs to 20.
  6. Move the blueprint window so you can observe the int variables of the instance.
  7. In the child, add a new variable and compile. Confirm that the int values has the correct values.
  8. Open A and add a function that returns the child reference. Compile.
  9. Confirm again that the int values are correct.
  10. Open the child again and add another variable. Compile. Note how the inherited variable resets.
  11. After adding a function that returns the child ref, this reset will now happen with any of the following modifications of the child class:
  12. Function: change/add input / output, make it pure, private.
  13. Add a variable
  14. Add a custom event.
  15. Add a function.
  16. Add a component.
  17. Rename any of the above.

Hello ,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here

You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.