<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yotiky</author_name>
  <author_url>https://blog.hatena.ne.jp/yotiky/</author_url>
  <blog_title>yotiky Tech Blog</blog_title>
  <blog_url>https://yotiky.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>環境 Unity 2019.4.3f1 実装例 終了のイベントをフックして、非同期な後処理を呼びつつイベント自体はキャンセルし、後処理が終わったらそのままアプリが終了するようにします。 void Start() { Application.wantsToQuit += Application_wantsToQuit; } private bool Application_wantsToQuit() { CleanUp(); return false; } bool cleanuping; async void CleanUp() { if (!cleanuping) { try { clean…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyotiky.hatenablog.com%2Fentry%2F2020%2F08%2F11%2Funity_asyncquit&quot; title=&quot;Unity - アプリ終了時に非同期処理を実行して終了する - yotiky Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-11 01:03:20</published>
  <title>Unity - アプリ終了時に非同期処理を実行して終了する</title>
  <type>rich</type>
  <url>https://yotiky.hatenablog.com/entry/2020/08/11/unity_asyncquit</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
