<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PaperSloth</author_name>
  <author_url>https://blog.hatena.ne.jp/PaperSloth/</author_url>
  <blog_title>PaperSloth’s diary</blog_title>
  <blog_url>https://papersloth.hatenablog.com/</blog_url>
  <categories>
    <anon>UE5</anon>
    <anon>C/C++</anon>
  </categories>
  <description>環境 概要 具体的な利用例 ON_SCOPE_EXITを使用した場合 ON_SCOPE_EXITを使用しない場合 まとめ この記事はUnreal Engine (UE) - Qiita Advent Calendar 2025 - Qiitaシリーズ 4の20日目の記事となります。 環境 Unreal Engine 5.3.2 Rider 2025.2.3 概要 ON_SCOPE_EXITはスコープを抜けるときに必ず実行したい処理をラムダで簡潔に書ける便利マクロです。利用例としては以下のケースが考えられます。 ・早期returnが多い関数での失敗時処理の一元化 ・リソース解放や状態復元の漏れ防…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapersloth.hatenablog.com%2Fentry%2F2025%2F12%2F20%2F194101&quot; title=&quot;UE5 ON_SCOPE_EXITの話 - PaperSloth’s diary&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>2025-12-20 19:41:01</published>
  <title>UE5 ON_SCOPE_EXITの話</title>
  <type>rich</type>
  <url>https://papersloth.hatenablog.com/entry/2025/12/20/194101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
