<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Unity</anon>
    <anon>Tool</anon>
  </categories>
  <description>プロパティに [field: SerializeField] を付けると最初は便利かもしれませんが、後々面倒なので避けましょうねと言う話になります。 初めに Unity でインスペクター上から値を変更できるようにするには以下のように記述します。 // 方法(1)：publicで宣言する public float _value1; // 方法(2)：SerializeFieldを付ける [SerializeField] private float _value2; // privateは書かなくても良い // [SerializeField] float _value2; // 方法(3)：プロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2023%2F06%2F22%2F010017&quot; title=&quot;【Unity】プロパティを[field:SerializeField]は避ける - PG日誌&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>2023-06-22 01:00:17</published>
  <title>【Unity】プロパティを[field:SerializeField]は避ける</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2023/06/22/010017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
