How to trigger an event before the streaming level is unloaded

After calling, the content of the level no longer exists. To save the game, it needs to be called when the content of the level exists. I plan to save the content of the level outside the level and wait until the level is loaded again and call the save content from outside.