{"title":"\u3010Unity\u3011Input\u306b\u95a2\u3059\u308b\u5099\u5fd8\u9332","url":"https://alpacatech.hateblo.jp/entry/2018/03/30/172233","provider_name":"Hatena Blog","version":"1.0","blog_title":"Alpaca Tech Blog","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/alpacatech/20171208/20171208162354.jpg","width":"100%","author_name":"alpacatech","categories":["Unity","Tips","Input"],"author_url":"https://blog.hatena.ne.jp/alpacatech/","height":"190","published":"2018-03-30 17:22:33","blog_url":"https://alpacatech.hateblo.jp/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Falpacatech.hateblo.jp%2Fentry%2F2018%2F03%2F30%2F172233\" title=\"\u3010Unity\u3011Input\u306b\u95a2\u3059\u308b\u5099\u5fd8\u9332 - Alpaca Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u968f\u6642\u66f4\u65b0\u4e88\u5b9a \u30de\u30a6\u30b9 \u5ea7\u6a19\u53d6\u5f97 \u30af\u30ea\u30c3\u30af UI\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u5834\u5408\u306f\u51e6\u7406\u3057\u306a\u3044 \u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u3001\u30ad\u30fc\u30dc\u30fc\u30c9 \u5341\u5b57\u30ad\u30fc\u53d6\u5f97 \u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u3084WASD\u5165\u529b\u304c\u5834\u5408\u3082\u3063\u3055\u308a\u52d5\u304f \u30dc\u30bf\u30f3 \u62bc\u3057\u305f\u77ac\u9593\uff08\uff11\u30d5\u30ec\u30fc\u30e0\uff09 \u62bc\u3057\u3066\u3044\u308b \u96e2\u3057\u305f\u77ac\u9593\uff08\uff11\u30d5\u30ec\u30fc\u30e0\uff09 \u8ffd\u52a0\u4e88\u5b9a \u30de\u30a6\u30b9 \u5ea7\u6a19\u53d6\u5f97 Vector3 mousePosition = Input.mousePosition;\u7bc4\u56f2\u306f\u3001 x ... 0\uff5eScreen.width y ... 0\uff5eScreen.height \u30b9\u30de\u30db\u7b49\u3067\u30de\u30eb\u30c1\u30bf\u30c3\u30c1\u74b0\u5883\u306e\u5834\u5408\u3001\u30bf\u30c3\u30c1\u3057\u3066\u3044\u308b\u70b9\u7fa4\u306e\u4e2d\u592e\u304c\u5ea7\u6a19\u3068\u306a\u308a\u307e\u3059\u3002 \u4f8b\uff09\uff12\u70b9\u30bf\u30c3\u30c1\u3057\u305f\u5834\u5408 \uff11\u70b9\u76ee(100,200) \uff12\u70b9\u76ee(200,40\u2026"}