<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanaaaaaachiru</author_name>
  <author_url>https://blog.hatena.ne.jp/hanaaaaaachiru/</author_url>
  <blog_title>はなちるのマイノート</blog_title>
  <blog_url>https://www.hanachiru-blog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>はじめに MonoBehaviorを継承したクラスの初期化はAwakeやStartに書くと思うのですが、実はコンストラクターも一応動作します。 public class Sample : MonoBehaviour { public Sample() { Debug.Log(&quot;コンストラクター&quot;); } } ただこの挙動については皆さんが想定しているものとは違ったことになるのでそこについて紹介をしたいと思います。 はじめに 前提知識 実験 前提知識 answers.unity.comこちらの海外兄貴の質問にも記載されているのですが、シリアライズ化されるタイミングでコンストラクタが実行されます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hanachiru-blog.com%2Fentry%2F2021%2F11%2F25%2F145951&quot; title=&quot;【Unity】MonoBehaviourを継承したクラスにコンストラクターを書いたときの挙動（シリアライズ化のタイミング） - はなちるのマイノート&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/hanaaaaaachiru/20211125/20211125143021.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-25 14:59:51</published>
  <title>【Unity】MonoBehaviourを継承したクラスにコンストラクターを書いたときの挙動（シリアライズ化のタイミング）</title>
  <type>rich</type>
  <url>https://www.hanachiru-blog.com/entry/2021/11/25/145951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
