<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>UE4</anon>
    <anon>C++</anon>
    <anon>Outer</anon>
    <anon>change</anon>
    <anon>set</anon>
    <anon>NewObject</anon>
    <anon>UObject::Rename</anon>
    <anon>GetWorld</anon>
  </categories>
  <description>↓こういうのが居たとする。 // UObject 派生だがシングルトンファクトリーで生成されるオブジェクトがあったとする UA* UA::GetInstance() { if ( ! my_static_instance ) my_static_instance = NewObject&lt; UA &gt;(); return my_static_instance; } このようなファクトリーで得られる仕組みの UA のオブジェクトは Outer を持たないため GetWorld() しても nullptr が帰るなど不便な事もある。幾つか無理やり気味な方法は思いつくものの、 Outer を外から設定で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2018%2F12%2F02%2F234629&quot; title=&quot;UE4/C++: NewObject で生成したオブジェクトの Outer を変更したい場合のメモ - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-02 23:46:29</published>
  <title>UE4/C++: NewObject で生成したオブジェクトの Outer を変更したい場合のメモ</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2018/12/02/234629</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
