[4.12.5] EndPlay() called twice

I’ve found that EndPlay gets called twice for actors spawned via ChildActorComponent.
This happens after updating from 4.10.4.
For normal actors, EndPlay gets called only once as expected.

Here are the callstacks

Hey Vadaumuku-

Both calls are expected due to the order of how things are being destroyed / cleaned up. The first time the EndPlay() is triggered is when the Play in Editor session is ending and the second time it’s triggered is when it is actually destroyed as part of the parent. This can be observed by monitoring the value of the EndPlayReason variable at the time that the breakpoint is triggered.