You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The bug of scheduleOnce not being executed is triggered when scheduleOnce and unschedule are called multiple times. #16653
Repeated calls to scheduleOnce and unschedule significantly increase the likelihood of scheduleOnce no longer triggering. I modified the scheduleOnce function in the engine's source file components.ts to fire on the next frame, which currently resolves this issue. However, I'm unsure if this modification may lead to other problems.
Activity
minggo commentedon Jan 9, 2024
When
Scheduler.scheduleOnce()finishes, it will unschedule itself, so the schedule action in callback is unscheduled.minggo commentedon Jan 9, 2024
I fixed it by using a special unschedule function for timer to fix it.