{"id":4008,"date":"2014-04-07T13:50:01","date_gmt":"2014-04-07T17:50:01","guid":{"rendered":"http:\/\/elwinlee.com\/blog\/?p=4008"},"modified":"2017-01-17T11:08:35","modified_gmt":"2017-01-17T16:08:35","slug":"fix-unity3d-black-screen-on-ios-devices","status":"publish","type":"post","link":"https:\/\/www.elwinlee.com\/blog\/fix-unity3d-black-screen-on-ios-devices\/","title":{"rendered":"[FIX] Unity3D Black Screen on iOS Devices"},"content":{"rendered":"<p><a href=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2014\/04\/unity-clearflags.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4012\" src=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2014\/04\/unity-clearflags.png\" alt=\"unity-clearflags\" width=\"50%\" srcset=\"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/04\/unity-clearflags.png 398w, https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/04\/unity-clearflags-300x210.png 300w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/p>\n<p><span style=\"line-height: 1.5em;\">We were trying to run a build of <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/puzzlefootball.com\">Puzzle Football<\/a><\/strong><\/span> on iPad yesterday to see how the game would look from an iPhone5 aspect ratio (16:9) to an iPad aspect ratio (4:3). B<\/span><span style=\"line-height: 1.5em;\">ut when we tried to run it the screen goes black. The game launches and the buttons were working so the game wasn&#8217;t stuck. The weird thing was that it runs fine on the iPad2, but it shows a black screen on the iPad Mini.<\/span><\/p>\n<p>I found a fix on the <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/forum.unity3d.com\/threads\/162800-Unity-4-IOS-Black-Screen\">Unity forum<\/a><\/strong><\/span> which mentions changing the <strong>Clear Flags<\/strong> property on the Camera object by setting it to &#8220;<strong>Solid Color<\/strong>&#8221; (it was on &#8220;Don&#8217;t Clear&#8221; before). Not sure why it needs to be on Solid Color, but it&#8217;s working now! No more black screen on the iPad Mini!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We were trying to run a build of Puzzle Football on iPad yesterday to see how the game would look [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[429,11,1079,255],"tags":[913,1242,1616,1619,2009,2010,2338,2339,2340,2341,2342,2343],"class_list":["post-4008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-design","category-gaming","category-how-to-fix-stuff","category-technology","tag-game","tag-black","tag-screen","tag-fix","tag-unity3d","tag-unity","tag-ios","tag-iphone","tag-ipad","tag-clear-flags","tag-solid-color","tag-camera"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/04\/unity-clearflags.png","jetpack_shortlink":"https:\/\/wp.me\/p1mtRf-12E","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/comments?post=4008"}],"version-history":[{"count":2,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4008\/revisions"}],"predecessor-version":[{"id":4474,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4008\/revisions\/4474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media\/4012"}],"wp:attachment":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media?parent=4008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/categories?post=4008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/tags?post=4008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}