<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyubuns</author_name>
  <author_url>https://blog.hatena.ne.jp/kyubuns/</author_url>
  <blog_title>きゅぶろぐ</blog_title>
  <blog_url>https://blog.kyubuns.dev/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>Unity - Scripting API: Screen.SetResolution 16:9と16:10だけサポートしておけば良いだろう。という考えで、 1920x1080、1920x1200、...のような解像度のリストを準備し、 その中からユーザーに解像度を選択してもらうUIを準備していたところ、 意図せずウルトラワイドディスプレイで起動した時に21:9のアスペクト比で起動してしまう事件が発生しました。 なんで？ 確かにドキュメントを読むと A width by height resolution is used. If no matching resolution is suppor…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyubuns.dev%2Fentry%2F2025%2F03%2F17%2F142856&quot; title=&quot;Screen.SetResolutionに適当な解像度を渡すと想定しないアスペクト比になってしまうことがある - きゅぶろぐ&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>2025-03-17 14:28:56</published>
  <title>Screen.SetResolutionに適当な解像度を渡すと想定しないアスペクト比になってしまうことがある</title>
  <type>rich</type>
  <url>https://blog.kyubuns.dev/entry/2025/03/17/142856</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
