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.

asked Jun 27 in Engine by God Of Theory (42 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 How to use this Q&A? before posting your first questions.