<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuntaendo</author_name>
  <author_url>https://blog.hatena.ne.jp/shuntaendo/</author_url>
  <blog_title>トンコツ開発ブログ</blog_title>
  <blog_url>https://shuntaendo.hatenablog.com/</blog_url>
  <categories>
    <anon>Unreal Engine</anon>
    <anon>C++</anon>
  </categories>
  <description>ブループリントで変数を定義した後にC++側で基底クラスを作ることになった、変数も基底クラス側で定義したい、なんてことが多々あるかと思います。 そんな場合は UPROPERTY 付きの同名の変数を定義するだけで自動で上書きしてくれます。ブループリントを開いた際に画像のようなログが出力されれば正常に上書きされています。UPROPERTY を付いていて且つ同名同型であることが条件ですが、ブループリントで扱うために BlueprintReadOnly もしくは BlueprintReadWrite を付けておきましょう。 UE Version : 5.2.0</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuntaendo.hatenablog.com%2Fentry%2F2023%2F06%2F19%2F212452&quot; title=&quot;【UE5】ブループリントで定義した変数をC++から上書きする - トンコツ開発ブログ&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/s/shuntaendo/20230619/20230619204847.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-06-19 21:24:52</published>
  <title>【UE5】ブループリントで定義した変数をC++から上書きする</title>
  <type>rich</type>
  <url>https://shuntaendo.hatenablog.com/entry/2023/06/19/212452</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
