記事

Article

sleep()やwait()のような処理を入れる

: Godot4
投稿日:
更新日:
    await get_tree().create_timer(0.5).timeout

上記を1行追加する。デバッグなどに便利。

func something():
    var a = 1 + 1;
    print("processing...")
    await get_tree().create_timer(0.5).timeout
    print(a)