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