<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsubaki_t1</author_name>
  <author_url>https://blog.hatena.ne.jp/tsubaki_t1/</author_url>
  <blog_title>テラシュールブログ</blog_title>
  <blog_url>https://tsubakit1.hateblo.jp/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>エディタ拡張・エディタ機能</anon>
    <anon>スクリプト</anon>
  </categories>
  <description>プレハブとしてオブジェクトを作成するには、以下のようにコードを記述します。#if UNITY_EDITOR var tile = UnityEditor.PrefabUtility.InstantiatePrefab(prefab.gameObject) as GameObject; #else var tile = Instantiate(prefab.gameObject) as GameObject; #endif要するに、InstantatePrefabを使用すると、インスタンス化ではなくプレハブとしてエディタに配置します。この方法ならば、プレハブとしての機能を活用出来るので、配置した…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsubakit1.hateblo.jp%2Fentry%2F20140706%2F1404602555&quot; title=&quot;Unityで、Editor シーン上にプレハブとしてオブジェクトを配置する - テラシュールブログ&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>http://tsubakit1.sakura.ne.jp/images/20140706074148971.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-07-06 08:22:35</published>
  <title>Unityで、Editor シーン上にプレハブとしてオブジェクトを配置する</title>
  <type>rich</type>
  <url>https://tsubakit1.hateblo.jp/entry/20140706/1404602555</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
