<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hacchi_man</author_name>
  <author_url>https://blog.hatena.ne.jp/hacchi_man/</author_url>
  <blog_title>うにてぃブログ</blog_title>
  <blog_url>https://hacchi-man.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Attribute</anon>
  </categories>
  <description>オブジェクト等の参照が無い場合、警告を出す Attribute を作成してみました シリアライズされているフィールドに NotNull をつけると表示されるようになります public class SampleMonoBehaviour : MonoBehaviour { [SerializeField, NotNull] private RectTransform _root1; [SerializeField, NotNull] private int _value; [SerializeField, NotNull] private string _strValue; } コード usi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhacchi-man.hatenablog.com%2Fentry%2F2021%2F01%2F01%2F220000&quot; title=&quot;【Unity】Null の場合 警告を出す Attribute - うにてぃブログ&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/h/hacchi_man/20201208/20201208005953.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-01 22:00:00</published>
  <title>【Unity】Null の場合 警告を出す Attribute</title>
  <type>rich</type>
  <url>https://hacchi-man.hatenablog.com/entry/2021/01/01/220000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
