{"id":5542,"date":"2017-03-14T10:00:37","date_gmt":"2017-03-14T01:00:37","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5542"},"modified":"2017-03-13T19:13:06","modified_gmt":"2017-03-13T10:13:06","slug":"unity%e3%81%ae%e5%ad%a6%e7%bf%92-part8","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5542","title":{"rendered":"Unity\u306e\u5b66\u7fd2 part8"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u6700\u5f8c\u3068\u306a\u308b\u30e2\u30c7\u30eb\u3092\u8ffd\u5c3e\u3059\u308b\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059<\/p>\n<p>\u3061\u306a\u307f\u306b\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059<\/p>\n<p>\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30c9\u30de\u30c3\u30d7<br \/>\n1. <a href=\"\/appnews\/archives\/5424\">\u30e2\u30c7\u30eb\u306e\u53d6\u5f97\u3068\u914d\u7f6e\u3000<\/a><br \/>\n2. <a href=\"\/appnews\/archives\/5466\">\u30e2\u30c7\u30eb\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/a><br \/>\n3. <a href=\"\/appnews\/archives\/5518\">\u30e2\u30c7\u30eb\u306e\u79fb\u52d5\u306b\u5408\u308f\u305b\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/a><br \/>\n4. \u30e2\u30c7\u30eb\u3092\u8ffd\u5c3e\u3059\u308b\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u3000<span style=\"color: #7f270a;\">\u2190\u4eca\u56de\u306e\u8a18\u4e8b<\/span><\/p>\n<p>\u76ee\u6a19\u306f\u3001\u30e2\u30c7\u30eb\u306e\u52d5\u304b\u3057\u65b9\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3001\u30ab\u30e1\u30e9\u306e\u5411\u304d\u306b\u5408\u308f\u305b\u305f\u79fb\u52d5\u306e\u4ed5\u65b9\u3092\u5b66\u7fd2\u3059\u308b\u3053\u3068\u3067\u3059<\/p>\n<p><!--more--><\/p>\n<h3>\u30e2\u30c7\u30eb\u306e\u8ffd\u5f93<\/h3>\n<p>\u521d\u3081\u306b\u30ab\u30e1\u30e9\u306e\u521d\u671f\u4f4d\u7f6e\u3092\u3001\u81ea\u5206\u306e\u597d\u304d\u306a\u4f4d\u7f6e\u3067\u826f\u3044\u306e\u3067\u6c7a\u3081\u307e\u3059<br \/>\n\u79c1\u306f\u3001\u3053\u306e\u4f4d\u7f6e\u3092\u521d\u671f\u4f4d\u7f6e\u3068\u3057\u307e\u3057\u305f<br \/>\n<img loading=\"lazy\" class=\"alignnone size-medium wp-image-5546\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/03\/54a1bdecbbacd32f4b35fe8bfb14f8ea-300x240.png\" alt=\"\u521d\u671f\u4f4d\u7f6e\" width=\"600\" height=\"480\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/03\/54a1bdecbbacd32f4b35fe8bfb14f8ea-300x240.png 300w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/03\/54a1bdecbbacd32f4b35fe8bfb14f8ea.png 1280w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u521d\u671f\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306b\u5408\u308f\u305b\u3066\u30ab\u30e1\u30e9\u3082\u52d5\u304f\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<p>\u4f4d\u7f6e\u3092\u6c7a\u5b9a\u3057\u305f\u30ab\u30e1\u30e9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3059<br \/>\n\u305d\u3057\u3066\u3001<span style=\"color: #0000ff;\"><strong>\u30b9\u30bf\u30fc\u30c8\u6642\u306b\u30e2\u30c7\u30eb\u3068\u306e\u5dee\u3092\u53d6\u5f97<\/strong><\/span>\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 1px; padding-left: 5px;\"><code>public class cameraController : MonoBehaviour {\r\n\r\n    private Vector3 offset;\r\n    [SerializeField]\r\n    private unitychan model;\r\n\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n        \/\/\u30ab\u30e1\u30e9\u521d\u671f\u4f4d\u7f6e\u3068\u30e2\u30c7\u30eb\u521d\u671f\u4f4d\u7f6e\u3068\u306e\u5dee\u3092\u53d6\u5f97\r\n        offset = transform.position - model.transform.position;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b\u3001<strong><span style=\"color: #0000ff;\">\u30d5\u30ec\u30fc\u30e0\u306e\u66f4\u65b0\u6642\u306b\u521d\u671f\u4f4d\u7f6e\u306e\u5dee\u3068\u73fe\u5728\u306e\u30e2\u30c7\u30eb\u306e\u4f4d\u7f6e\u3092\u8a08\u7b97\u3057\u3066\u3001\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u79fb\u52d5<\/span><\/strong>\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 1px; padding-left: 5px;\"><code>    private void Update()\r\n    {\r\n        transform.position = offset + model.transform.position;\r\n    }\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3059<br \/>\n<img loading=\"lazy\" class=\"alignnone size-full wp-image-5547\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/03\/cameraMove.gif\" alt=\"cameraMove\" width=\"693\" height=\"405\" \/><\/p>\n<p>\u4eca\u56de\u306f\u3001\u524d\u5f8c\u306e\u79fb\u52d5\u306e\u307f\u3068\u5236\u9650\u3057\u3066\u3044\u308b\u306e\u3067\u5358\u7d14\u306a\u5b9f\u88c5\u3068\u306a\u308a\u307e\u3057\u305f<br \/>\n\u3057\u304b\u3057\u3001\u30e2\u30c7\u30eb\u306b\u56de\u8ee2\u306e\u8981\u7d20\u3092\u52a0\u3048\u308b\u3068\u3001\u30ab\u30e1\u30e9\u3082\u56de\u8ee2\u3092\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3057\u3001\u30e2\u30c7\u30eb\u306e\u5411\u304d\u306b\u3042\u3063\u305f\u30ab\u30e1\u30e9\u306e\u79fb\u52d5\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306e\u51e6\u7406\u3068\u306f\u9055\u3063\u305f\u3053\u3068\u3092\u3057\u306a\u3044\u3068\u3001\u30ab\u30e1\u30e9\u306f\u601d\u3063\u305f\u3088\u3046\u306b\u52d5\u304b\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3068\u306a\u308a\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\u3092\u4f5c\u308b\u3053\u3068\u3067\u3001\u6b21\u306b\u306a\u306b\u3092\u3059\u308c\u3070\u3044\u3044\u304b\u660e\u78ba\u306b\u306a\u308b\u305f\u3081\u306b\u3001\u4f5c\u696d\u304c\u3057\u3084\u3059\u304b\u3063\u305f\u3067\u3059<\/p>\n<p>\u30e2\u30c7\u30eb\u306e\u53d6\u5f97\u3068\u914d\u7f6e\u3067\u306f\u3001\u516c\u5f0f\u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u3066\u3001\u30e6\u30cb\u30c6\u30a3\u3061\u3083\u3093\u3092\u914d\u7f6e\u3057\u307e\u3057\u305f<\/p>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u6700\u521d\u306b\u30a2\u30d0\u30bf\u30fc\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u52d5\u304b\u306a\u304f\u3066\u56f0\u308a\u307e\u3057\u305f\u304c\u3001\u305d\u3053\u3082\u4e00\u3064\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f<\/p>\n<p>\u30e2\u30c7\u30eb\u306e\u79fb\u52d5\u306b\u5408\u308f\u305b\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u64cd\u4f5c\u304c\u7d42\u308f\u3063\u3066\u3082\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u6b21\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u9077\u79fb\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001Has Exit Time\u306e\u30c1\u30a7\u30c3\u30af\u3092\u306f\u305a\u3059\u3053\u3068\u304d\u308c\u3044\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u3067\u30e2\u30c7\u30eb\u306e\u79fb\u52d5\u306b\u5408\u308f\u305b\u3066\u30ab\u30e1\u30e9\u306e\u79fb\u52d5\u3092\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f<br \/>\n\u524d\u5f8c\u79fb\u52d5\u306e\u307f\u306a\u306e\u3067\u3001\u5358\u7d14\u306a\u5b9f\u88c5\u3067\u7d42\u308f\u308a\u307e\u3057\u305f<\/p>\n<p>\u6b21\u56de\u306f\u3001\u30e2\u30c7\u30eb\u306b\u56de\u8ee2\u3082\u52a0\u3048\u305f\u3082\u306e\u3067\u3001\u307e\u305f\u9055\u3063\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1apoppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5542\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5542\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Unity\u306e\u5b66\u7fd2 part8\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5542\" data-text=\"Unity\u306e\u5b66\u7fd2 part8\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5542\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5542\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u6700\u5f8c\u3068\u306a\u308b\u30e2\u30c7\u30eb\u3092\u8ffd\u5c3e\u3059\u308b\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059 \u3061\u306a\u307f\u306b\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30c9\u30de\u30c3\u30d7 1. \u30e2\u30c7\u30eb\u306e\u53d6\u5f97\u3068\u914d\u7f6e\u3000 2. \u30e2\u30c7\u30eb\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a 3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,109],"tags":[56,108],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5542"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=5542"}],"version-history":[{"count":8,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5542\/revisions"}],"predecessor-version":[{"id":5557,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5542\/revisions\/5557"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}