EndPlay Function Explanation
Some times you want some custom functionality happen in an Actor when you exit your game. Unreal Engine provides a built-in function which is fired when yout exit your game. Calling the EndPlay Function In order to call the EndPlay…