Teardown() Not being called

I found that after completing this section my Teardown function wasn’t being called. Since this function was called in the condition that Menu was not a nullprt there was a bit of confusion as to how the Host function being called from the Menus host button would cause the Menu to be set to a nullptr.

In the end I found that everything seemed to be in order on the programming side and that this must be one of UE’s quirks.

[Fix]
Closing and reopening the project allowed the Teardown function to be called with no issue

2 Likes

This is a common issue. Sometimes the Actors need to reinitialise and opening the project again often solves it.

Sorry for the delay in replying.

Thanks for this. This was my issue as well. Closing and re-opnening seems to be the go to move first when something doesnt work.

Privacy & Terms