{"id":24481,"date":"2017-03-13T00:49:22","date_gmt":"2017-03-12T15:49:22","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=24481"},"modified":"2017-03-14T07:57:29","modified_gmt":"2017-03-13T22:57:29","slug":"ue4-unreal-c%e3%82%b3%e3%83%bc%e3%83%89%e3%83%aa%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0%e4%bc%9a%e5%a4%a7%e9%98%aa%e3%81%ab%e8%a1%8c%e3%81%a3%e3%81%a6%e3%81%8d%e3%81%9f","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=24481","title":{"rendered":"UE4 Unreal C++\u30b3\u30fc\u30c9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u4f1a@\u5927\u962a\u306b\u884c\u3063\u3066\u304d\u305f"},"content":{"rendered":"<p><a href=\"https:\/\/connpass.com\/event\/51629\/\">UE4 Unreal C++\u30b3\u30fc\u30c9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u4f1a@\u5927\u962a<\/a>\u306b\u884c\u3063\u3066\u304d\u305f\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/20170312_131643.jpg\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/20170312_131643.jpg\" alt=\"\" width=\"640\" height=\"360\" class=\"alignnone size-full wp-image-24485\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/20170312_131643.jpg 640w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/20170312_131643-300x169.jpg 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/20170312_131643-624x351.jpg 624w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n\u4e3b\u50ac\u306falwei\u6c0f\u3067\u3001\u524d\u306b<a href=\"http:\/\/kako.com\/blog\/?p=6767\">\u7b2c1\u56de Unreal Engine4 \u540d\u53e4\u5c4b\u52c9\u5f37\u4f1a<\/a>\u3067\u8b1b\u5e2b\u3092\u3057\u3066\u3044\u305f\u4eba\u3060\u3002<\/p>\n<p>Unreal C++\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001UE4\u3067\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u969b\u306bBluePrint\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306a\u304fC++\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8a2d\u5b9a\u3057\u3066\u4f5c\u6210\u3059\u308b\u3068\u3001\u305d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3068\u30a8\u30f3\u30b8\u30f3\u90e8\u5206\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u5165\u3063\u305f\u72b6\u614b\u3067\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n<p>\u5b9f\u969b\u306bThirdPerson\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092C++\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4f5c\u6210\u3057\u3066\u3001\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>Unreal Engine\u306e\u30a8\u30f3\u30b8\u30f3\u90e8\u5206\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3055\u3059\u304c\u306bC++\u306b\u3042\u307e\u308a\u7cbe\u901a\u3057\u3066\u3044\u306a\u3044\u81ea\u5206\u304c\u8aad\u3080\u306e\u306f\u53b3\u3057\u3044\u611f\u3058\u3060\u3063\u305f\u3002<\/p>\n<p>ThirdPerson\u306eC++\u306e\u30b3\u30fc\u30c9\u3092\u3044\u3058\u3063\u3066\u3001cpp_thirdCharacter.cpp\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306evoid Acpp_thirdCharacter::MoveForward(float Value)\u3068\u3044\u3046\u90e8\u5206\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304c\u524d\u5f8c\u65b9\u5411\u306b\u79fb\u52d5\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u63db\u3048\u3066\u3001LOG\u51fa\u529b\u3092\u5165\u308c\u3066\u307f\u305f\u308a\u3001\u753b\u9762\u4e0a\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u305f\u308a\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvoid Acpp_thirdCharacter::MoveForward(float Value)\r\n{\r\n\tif ((Controller != NULL) &amp;&amp; (Value != 0.0f))\r\n\t{\r\n\t\t\/\/ find out which way is forward\r\n\t\tconst FRotator Rotation = Controller-&gt;GetControlRotation();\r\n\t\tconst FRotator YawRotation(0, Rotation.Yaw, 0);\r\n\r\n\t\t\/\/ get forward vector\r\n\t\tconst FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);\r\n\t\tAddMovementInput(Direction, Value);\r\n\t\tUE_LOG(LogTemp, Warning, TEXT(&quot;output : %s&quot;), L&quot;Move Forward!!!!&quot;); \/\/ \u3053\u308c\u3092\u8ffd\u52a0\u3057\u305f!\r\n\t\tGEngine-&gt;AddOnScreenDebugMessage(-1 , 2.0 , FLinearColor::Red.ToFColor(true) , TEXT(&quot;Move Forward!!!!&quot;) ); \/\/ \u3053\u308c\u3092\u8ffd\u52a0\u3057\u305f!\r\n\t}\r\n}\r\n<\/pre>\n<p>GEngine\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u3001GEngine\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30ebEngine.h\u306einclude\u3092\u5148\u982d\u306b\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#include &quot;Runtime\/Engine\/Classes\/Engine\/Engine.h&quot;\r\n<\/pre>\n<p><a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen.png\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen.png\" alt=\"\" width=\"800\" height=\"450\" class=\"alignnone size-full wp-image-24489\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen.png 800w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen-300x169.png 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen-768x432.png 768w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/03\/screen-624x351.png 624w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><br \/>\n(\u4f7f\u7528\u3057\u305fUE4\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f4.15.0)<\/p>\n<p>\u305d\u306e\u4ed6\u3001\u52c9\u5f37\u306b\u306a\u3063\u305f\u70b9\u3002<\/p>\n<p>\u30fbUE4\u306e\u30d3\u30eb\u30c9\u30b7\u30b9\u30c6\u30e0\u306f\u3001MONO\/C#\u3067\u4f5c\u3089\u308c\u3066\u3044\u308b\u3002<br \/>\n\u3000UE4\u306e\u30a8\u30f3\u30b8\u30f3\u306e\u30bd\u30fc\u30b9\u3068\u540c\u3058\u304f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u3063\u3066\u3044\u308b\u3002<br \/>\n\u3000Makefile\u307f\u305f\u3044\u306a\u3082\u306e\u306b\u6bd4\u3079\u308b\u3068\u304b\u306a\u308a\u8907\u96d1\u306a\u52d5\u4f5c\u3092\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3000C++\u306b\u72ec\u81ea\u306e\u62e1\u5f35\u3092\u3057\u3066\u3044\u3066\u3001\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3059\u308b\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u30b3\u30e1\u30f3\u30c8\u306b\u6240\u5b9a\u306e\u66f8\u5f0f\u3067\u66f8\u304b\u308c\u305f\u30e1\u30bf\u60c5\u5831\u3092\u53d6\u308a\u8fbc\u3093\u3067\u3001C++\u3067\u4f5c\u3089\u308c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u304cBluePrint\u4e0a\u3067\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u51e6\u7406\u3057\u3066\u304f\u308c\u305f\u308a\u3059\u308b\u3002<br \/>\n\u3000C++\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3068\u3001Visual Studio\u304c\u8d77\u52d5\u3057\u3066UE4 Editor\u3068\u30d3\u30eb\u30c9\u30b7\u30b9\u30c6\u30e0\u306f\u9023\u643a\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3002<\/p>\n<p>\u3060\u3060\u3001UE4 Editor\u3068Visual Studio\u306e\u9023\u643a\u306f\u3001\u3061\u3087\u3063\u3068\u4f7f\u3063\u3066\u307f\u3066\u4e0d\u5b89\u306a\u611f\u3058\u3060\u3002\u4f8b\u3048\u3070\u3001UE4 Editor\u5074\u3067\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u305d\u306e\u30af\u30e9\u30b9\u3092Visual Studio\u5074\u3067\u524a\u9664\u3057\u305f\u308a\u3059\u308b\u3068\u4e0d\u6574\u5408\u304c\u8d77\u304d\u3066UE4\u5074\u306b\u623b\u3063\u305f\u3042\u3068\u30d3\u30eb\u30c9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<br \/>\nVisual Studio\u3092\u7d42\u4e86\u3055\u305b\u3066\u304a\u3044\u3066\u3082C++\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fUE4 Editor\u5074\u304b\u3089\u3061\u3083\u3093\u3068\u30d3\u30eb\u30c9\u3067\u304d\u308b\u306e\u3067\u3001Visual Studio\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u3068\u304d\u306b\u306fUE4 Editor\u304c\u5185\u90e8\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u3063\u307d\u3044\u3002<\/p>\n<p>\u30db\u30c3\u30c8\u30ea\u30ed\u30fc\u30c9\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001UE4 Editor\u3067\u4f5c\u3063\u3066\u3044\u308b\u30b2\u30fc\u30e0\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u4fee\u6b63\u3092\u304b\u3051\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u53ef\u80fd\u3060\u3002BluePrint\u3067\u305d\u308c\u304c\u3067\u304d\u308b\u306e\u306f\u524d\u306b\u805e\u3044\u3066\u3044\u3066\u9762\u767d\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001C++\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u90e8\u54c1\u3082\u30db\u30c3\u30c8\u30ea\u30ed\u30fc\u30c9\u304c\u3067\u304d\u308b\u306e\u3060\u305d\u3046\u3060\u3002<\/p>\n<p>&#8212;<br \/>\n\u8ffd\u8a18<br \/>\n\u3053\u306e\u30b3\u30fc\u30c9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u4f1a\u306f\u3001UE4\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u307f\u3093\u306a\u3067\u8aad\u3093\u3067\u307f\u3093\u306a\u3067\u610f\u898b\u4ea4\u63db\u3092\u3059\u308b\u4f1a\u3068\u3044\u3046\u306e\u3092\u4e3b\u50ac\u306ealwei\u6c0f\u306f\u72d9\u3063\u3066\u3044\u305f\u307f\u305f\u3044\u3060\u3051\u3069\u3001\u3044\u304d\u306a\u308a\u305d\u306e\u5834\u3067\u521d\u3081\u3066UE4\u306eC++\u306e\u3061\u3087\u3063\u3068\u7279\u5fb4\u306e\u3042\u308b\u5927\u91cf\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u59cb\u3081\u3066\u610f\u898b\u3092\u51fa\u3059\u3068\u3044\u3046\u306e\u306f\u6b86\u3069\u306e\u53c2\u52a0\u8005\u306b\u306f\u96e3\u3057\u304b\u3063\u305f\u306e\u3060\u3068\u601d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UE4 Unreal C++\u30b3\u30fc\u30c9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u4f1a@\u5927\u962a\u306b\u884c\u3063\u3066\u304d\u305f\u3002 \u4e3b\u50ac\u306falwei\u6c0f\u3067\u3001\u524d\u306b\u7b2c1\u56de Unreal Engine4 \u540d\u53e4\u5c4b\u52c9\u5f37\u4f1a\u3067\u8b1b\u5e2b\u3092\u3057\u3066\u3044\u305f\u4eba\u3060\u3002 Unreal C++\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001UE4\u3067\u65b0\u898f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/24481"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24481"}],"version-history":[{"count":7,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/24481\/revisions"}],"predecessor-version":[{"id":24491,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/24481\/revisions\/24491"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24481"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}