<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a1026302</author_name>
  <author_url>https://blog.hatena.ne.jp/a1026302/</author_url>
  <blog_title>ものづくりのブログ</blog_title>
  <blog_url>https://a1026302.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Unity-2DRPG</anon>
    <anon>Unity-フィールド</anon>
  </categories>
  <description>2DRPGを作っていたら、町から家の中や1階から2階などに切り替える方法がわからないことに気が付きました。 しかも、ただ切り替えるだけではなく、町の中のある家の扉付近から、その家の中の扉の前と位置を指定してシーンを切り替える必要が出てきました。 今回は、その際に実装した方法についてメモを残しておこうと思います。 やりたいこと 準備するもの 操作できるキャラクタの設定 切り替え用のSceneを2つ 設定 スクリプト準備 出口のスクリプト作成 入口のスクリプト作成 出入口のGameObject設定 出口のGameObject 入口のGameObject やりたいこと フィールド間を移動させたい 準…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2020%2F09%2F25%2F180251&quot; title=&quot;Unityで2DのRPGを作る - フィールド間を移動させる方法 - ものづくりのブログ&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/a/a1026302/20200925/20200925175252.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-25 18:02:51</published>
  <title>Unityで2DのRPGを作る - フィールド間を移動させる方法</title>
  <type>rich</type>
  <url>https://a1026302.hatenablog.com/entry/2020/09/25/180251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
