<?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>RoslynAnalyzer</anon>
    <anon>Unity</anon>
  </categories>
  <description>エディタ上でだけ編集可能にする 「エディタ上で編集不可能にする」ではなく、その逆です。 ↓こういうこと ReadonlyInScript属性が付いたフィールドはインスペクタでは普通に編集できますが、スクリプトで代入しようとするとエラーで怒られます。 ネタバラし RoslynAnalyzerで書き込みを禁止しているだけです。 以下のような感じで、すごく愚直に。 public override void Initialize(AnalysisContext context) { // お約束。 context.ConfigureGeneratedCodeAnalysis(GeneratedCode…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnigiri.hatenablog.com%2Fentry%2F2023%2F04%2F27%2F220120&quot; title=&quot;【Unity】エディタ上でだけ編集可能なパラメータ - ノートの端の書き残し&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/20230427/20230427213329.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-27 22:01:20</published>
  <title>【Unity】エディタ上でだけ編集可能なパラメータ</title>
  <type>rich</type>
  <url>https://nigiri.hatenablog.com/entry/2023/04/27/220120</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
