<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>この記事でのバージョン Unity 2018.4.1f1 はじめに UnityのCameraはSize(orthographicSize)で表示範囲を設定する事ができます。 しかしスマホのように機種によって画面サイズやアスペクト比が変わってくる場合は、この値をプログラムで調整する必要が出てきます。 という事で、CameraのSizeをアスペクト比に合わせて自動で調整するプログラムを書いてみたので、今回はそのプログラムの紹介記事です。 イメージとしては以下のような感じ。 なお、記事中の画像は以下のアセットを使っております。 2D Fantasy Art Assets Full Pack | 2D…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FCameraSizeUpdater&quot; title=&quot;画面のサイズ(CameraのorthographicSize)をアスペクト比に合わせて自動で調整する【Unity】 - (:3[kanのメモ帳]&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/k/kan_kikuchi/20190702/20190702110827.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-04 08:30:02</published>
  <title>画面のサイズ(CameraのorthographicSize)をアスペクト比に合わせて自動で調整する【Unity】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/CameraSizeUpdater</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
