truong-bui / AsyncLoadingScreen

Async Loading Screen is a free and open-source plugin for Unreal Engine. Async Loading Screen allows you to easily configure a Loading Screen System in the project settings, and automatically add a Loading Screen whenever you open a new level, without Level Streaming.
https://www.unrealengine.com/marketplace/en-US/product/async-loading-screen
MIT License
787 stars 99 forks source link

Custom Function call when Loading Screen is about to end? #49

Closed CanisHelix closed 2 years ago

CanisHelix commented 2 years ago

I'd like to call a function in my GameMode right before the loading/transition widget's unload. Is this possible?

I couldn't find in the source code where you unload the widgets when the new map is ready.

truong-bui commented 2 years ago

I don't think it's possible to access any game-play logic during the loading screen. I don't unload the widget, it's removed by the engine when the PostLoadMapWithWorld delegate triggers. You can check the MoviePlayer plugin's source code.

CanisHelix commented 2 years ago

Thanks, I'll look into PostLoadMapWithWorld in the engine