Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually stop loading screen when level is ready #74

Open
karakasis opened this issue May 19, 2023 · 3 comments
Open

Manually stop loading screen when level is ready #74

karakasis opened this issue May 19, 2023 · 3 comments

Comments

@karakasis
Copy link

Can I use this plugin to have an infinite loading screen when going from main menu to game level, and use Stop loading screen node, to stop the loading manually on demand?

@truong-bui
Copy link
Owner

truong-bui commented May 20, 2023

Hi @karakasis
Unfortunately, the StopLoadingScreen node is not working correctly in Blueprint. I'll remove it soon in future updates. Please don't use it

However, you can enable the option "Wait for Manual Stop"=true and set the value for "MinimumLoadingScreenDisplayTime"=-1. This will allow the loading screen to continue until the player presses any button.

EDIT: I have rechecked the StopLoadingScreen node in the 5.2 version, and it works just fine. You can enable "Wait for Manual Stop"=true, "Allow Engine Tick"=true, and "MinimumLoadingScreenDisplayTime">=0. Then you can use StopLoadingScreen node. Note that you must call the StopLoadingScreen node only in the Event BeginPlay event ( you can use the Delay node before it). Otherwise, the StopLoadingScreen node doesn't work on other events like keyboard events.

@karakasis
Copy link
Author

Hello, thats good news. Whats the reason behind Begin play event? And since its not clarified "begin play" of which blueprint? I have tested it in player controller blueprints and it seem to work there, but ideally I would like to call the stop loading screen node, after certain gameplay things have been set correctly, like I'm using gameplay ability system to load abilities and such, UI stuff. Can I somehow use the stop loading screen node at any other place instead of timing it with a delay node?
Thanks

@truong-bui
Copy link
Owner

... Can I somehow use the stop loading screen node at any other place instead of timing it with a delay node?
Thanks

Unfortunately, it's not possible. You can only use the StopLoadingScreen node on the BeginPlay of GameInstance, GameMode, or PlayerController blueprints. I haven't tested it on other blueprints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants