Unity 2023 改め Unity 6 で新登場の Awaitable の癖が強い問題。 なぜ await するだけで実行スレッドが変わるのか 問題 !! 素直に await すれば良いじゃん? 追記: Awaitable の注意点 GetResult メソッドは未定義動作 複数回 await 出来ない ※ 実質的に RunOnMainThread では? ※ Awaitable から Task への変換 ※ async メソッドを実装したときに起きること Continuation(継続タスク) おわりに なぜ await するだけで実行スレッドが変わるのか まずは Awaitable.MainThreadAsync の仕組みについて。 Unity 公式の UnityCsReference を見ればわかる通り、メインスレッドで実行されている同期コンテキストに対して Post しているか