{"id":4019,"date":"2018-06-05T13:37:06","date_gmt":"2018-06-05T04:37:06","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4019"},"modified":"2023-05-27T23:54:27","modified_gmt":"2023-05-27T14:54:27","slug":"%e3%80%90unity%e3%80%91main-camera%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4019","title":{"rendered":"\u3010Unity\u3011\u300cMain Camera\u300d\u306e\u8a2d\u5b9a\u3001PlayerPrefs(\u30a2\u30d7\u30ea\u7d42\u4e86\u5f8c\u3082\u3001\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\uff09"},"content":{"rendered":"<h2>\u300cMain Camera\u300d\u3068\u306f\uff1f<\/h2>\n<p>\u30b7\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u305f\u969b\u306b\u3067\u304d\u308b\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u30b2\u30fc\u30e0\u753b\u9762\u305d\u306e\u3082\u306e\u3067\u3001<\/strong><\/span>\u3053\u308c\u304c<span style=\"color: #ff0000;\"><strong>\u30ab\u30e1\u30e9\u304c\u5199\u3059\u7bc4\u56f2<\/strong><\/span>\u3068\u3082\u3044\u3048\u307e\u3059\u3002<\/p>\n<h3>\u300cMain Camera\u300d\u306e\u8a2d\u5b9a<\/h3>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>Clear Flags<\/td>\n<td>\u753b\u9762\u306e\u3069\u306e\u90e8\u5206\u3092\u30af\u30ea\u30a2\u3059\u308b\u304b\u6c7a\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>Projection<\/td>\n<td>3D\u7a7a\u9593\u3092\u3069\u306e\u3088\u3046\u306b\u3057\u30662D\u3068\u3057\u3066\u63cf\u753b\u3059\u308b\u304b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Size<\/td>\n<td>\u300c\u30ab\u30e1\u30e9\u3092\u6620\u3057\u51fa\u3059\u7bc4\u56f2\u300d\u3068\u300c\u67a0\u300d\u306e\u95a2\u4fc2\u3092\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Background<\/td>\n<td>\u753b\u9762\u306e\u80cc\u666f\u8272<\/td>\n<\/tr>\n<tr>\n<td>Culling Mask<\/td>\n<td>\u30ab\u30e1\u30e9\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>Field of View<\/td>\n<td>\u30ab\u30e1\u30e9\u306e\u8996\u91ce\u89d2<\/td>\n<\/tr>\n<tr>\n<td>Physical Camera<\/td>\n<td>\u5b9f\u969b\u306e\u7269\u7406\u7684\u306a\u30ab\u30e1\u30e9\u8a2d\u5b9a\u3092\u9069\u7528\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>Clipping Planes<\/td>\n<td>\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u958b\u59cb\u3001\u505c\u6b62\u3059\u308b\u30ab\u30e1\u30e9\u304b\u3089\u306e\u8ddd\u96e2\u3002<\/p>\n<p>Near\uff1a\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u958b\u59cb\u3059\u308b\u30ab\u30e1\u30e9\u304b\u3089\u306e\u8ddd\u96e2<\/p>\n<p>Far\uff1a\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u4f53\u3059\u308b\u30ab\u30e1\u30e9\u304b\u3089\u306e\u8ddd\u96e2<\/td>\n<\/tr>\n<tr>\n<td>Viewport Rect<\/td>\n<td>\u30ab\u30e1\u30e9\u30d3\u30e5\u30fc\u3092\u63cf\u753b\u3059\u308b4\u70b9\u306e\u8a2d\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>Depth<\/td>\n<td>\u63cf\u753b\u9806\u3067\u306e\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>Orthographic<\/td>\n<td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5747\u7b49\u306b\u63cf\u753b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>Perspective<\/td>\n<td>\u305d\u306e\u307e\u307e\u306e\u666f\u8272\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Don't Clear<\/td>\n<td>\u8272\u3001\u6df1\u5ea6\u60c5\u5831\u304c\u5171\u306b\u30af\u30ea\u30a2\u3055\u308c\u306a\u3044\u3002\uff08\u3053\u306e\u30e2\u30fc\u30c9\u306f\u3042\u307e\u308a\u4f7f\u308f\u306a\u3044\uff09<\/td>\n<\/tr>\n<tr>\n<td>Solid Color<\/td>\n<td>\u7a7a\u90e8\u5206\u306bBackground\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u8272\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>PlayerPrefs(\u30a2\u30d7\u30ea\u7d42\u4e86\u5f8c\u3082\u3001\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\uff09<\/h2>\n<p>Unity\u306f\u3001\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u3059\u308b\u3068\u901a\u5e38\u306f\u3001\u5909\u6570\u306e\u5185\u5bb9\u304c\u30af\u30ea\u30a2\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">\u3057\u304b\u3057\u3001<\/span><strong>\u300cPlayerPrefs\u300d<\/strong><\/span>\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u7d42\u4e86\u5f8c\u3082\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u304a\u3051\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u7528\u9014<\/h3>\n<p>\u653e\u7f6e\u30b2\u30fc\u30e0\u7b49\u306e\u30a2\u30d7\u30ea\u7d42\u4e86\u5f8c\u3082\u6c17\u8efd\u306b\u9014\u4e2d\u304b\u3089\u59cb\u3081\u305f\u3044\u5834\u5408\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u4ed5\u7d44\u307f<\/h3>\n<p>\u5404OS\u306e\u7279\u5b9a\u306e\u5834\u6240\u306b\u3001\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u304f\u308c\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u30c7\u30fc\u30bf\u306f\u30a2\u30d7\u30ea\u3054\u3068\u306b\u72ec\u7acb\u3057\u3066\u3044\u308b<\/strong><\/span>\u306e\u3067\u3001\u4fdd\u5b58\u5834\u6240\u3092\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>PlayerPrefs\u306e\u30c7\u30fc\u30bf\u3092\u6d88\u3057\u305f\u3044\u5834\u5408<\/h3>\n<p>\u305f\u3060\u3001\u52d5\u4f5c\u78ba\u8a8d\u306e\u305f\u3081\u3001PlayerPrefs\u306e\u30c7\u30fc\u30bf\u3092\u6d88\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306f\u3001\u76f4\u63a5OS\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u300cPlayerPrefs.DeleteAll();\u300d<\/strong><\/span>\u3068\u8a18\u8ff0\u3057\u3066\u3001\u30d7\u30ec\u30a4\u30e2\u30fc\u30c9\u3067\u5b9f\u884c\u3059\u308c\u3070\u30c7\u30fc\u30bf\u3092\u521d\u671f\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u524a\u9664\u5f8c\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u7b49\u3092\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u306e\u307f\u6d88\u3057\u305f\u3044\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300cDeleteKey\u30e1\u30bd\u30c3\u30c9\u300d<\/strong><\/span>\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300cMain Camera\u300d\u3068\u306f\uff1f \u30b7\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u305f\u969b\u306b\u3067\u304d\u308b\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30b2\u30fc\u30e0\u753b\u9762\u305d\u306e\u3082\u306e\u3067\u3001\u3053\u308c\u304c\u30ab\u30e1\u30e9\u304c\u5199\u3059\u7bc4\u56f2\u3068\u3082\u3044\u3048\u307e\u3059\u3002 \u300cMain Camera\u300d\u306e\u8a2d\u5b9a \u9805\u76ee \u8aac\u660e Clear Flags \u753b\u9762\u306e\u3069 [&hellip;]","protected":false},"author":1,"featured_media":3779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4019"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4019"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4019\/revisions"}],"predecessor-version":[{"id":20612,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4019\/revisions\/20612"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/3779"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4019"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}