<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u_osusi</author_name>
  <author_url>https://blog.hatena.ne.jp/u_osusi/</author_url>
  <blog_title>ノートの端の書き残し</blog_title>
  <blog_url>https://nigiri.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Unity</anon>
  </categories>
  <description>エディタ拡張をした際に、Undoに対応する Undoが効かない書き方 通常のUnityコンポーネント編集のように、ctrl + zのUndo操作、Redo操作に対応するためには、コンポーネントのクラスを直接操作せず、SerializedObjectやSerializedPropertyを介して操作する必要があります。 簡単なコンポーネントを作って例を挙げますと。 using UnityEngine; public class RecordObjectTest : MonoBehaviour { public int Number; } このエディタ拡張として以下のコードを用意します。 usin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnigiri.hatenablog.com%2Fentry%2F2022%2F10%2F07%2F190950&quot; title=&quot;【Unityエディタ拡張】Undo.RecordObjectの記憶範囲について - ノートの端の書き残し&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>https://cdn-ak.f.st-hatena.com/images/fotolife/u/u_osusi/20221007/20221007183904.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-07 19:09:50</published>
  <title>【Unityエディタ拡張】Undo.RecordObjectの記憶範囲について</title>
  <type>rich</type>
  <url>https://nigiri.hatenablog.com/entry/2022/10/07/190950</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
