Changing the class of a ChildActorComponent (during PIE) destroys the child actor. When the class is set to the same as the default class it is spawned again, but when it is set to another class the child actor does not re-appear.
Steps to reproduce:
- Create 3 new blueprint classes (A, B, C).
- In the first blueprint class (A) add a ChildActorComponent.
- Set the ChildActorComponent class to B.
- Create a Blueprint script that switches the ChildActorComponent class between B and C (see example).
- Start PIE, and switch the class.
Expected Result:
When you switch class. The Child Actor is destroyed, and a new Child Actor of the new class is spawned.
Actual Result:
When you switch class. The Child Actor is destroyed, and if the new Child Actor class is not the same as the default class NO new Child Actor is spawned. If the class is the same as the default class it works as expected.
Reproduction Rate:
Every time, on multiple machines.
Tested in 4.15.0, and 4.15.1.