0 votes

I've been trying to skip a frame while waiting my popup menu to show.However,when I tried using return and yield, it feels it's taking more than one frame(around a few seconds) to continue.
I'm doing this following the background loading tutorial from the Godot documentation,which uses return.For me,I've changed to using yield,but the problem still persist.

in Engine by (47 points)

what are you yielding on?

yield(get_tree(), "idle_frame")

Yup...I did that...
Actually I don't even know why I need return/yield...
If I dint use them,my popup is showing up late....that's why used it...
What is it for?
Even when updating progress bar,it does'nt update when I did not call yield().If I call yield,there are chances that it will disrupt the order of execution.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.