é£è¼ç®æ¬¡ ååã®ããããªã¢ã«ãã¢ã¯ã¿ã¼ãã«ã¡ã©æä½ã§åããUnreal Engineã®åºæ¬çãªä½¿ãæ¹ãã§ã¯ããããªã¢ã«ãã¢ã¯ã¿ã¼ãBSPãã«ã¡ã©ã®æ¦è¦ããããªã¢ã«ã®ä½ãæ¹ãã¢ã¯ã¿ã¼ã®é ç½®ãä¿åãè¤è£½ãã°ã«ã¼ãåãªã©ã«ã¤ãã¦åºæ¬çãªä½¿ãæ¹ã解説ããã ä»åã¯ç©ºã®èæ¯ï¼ä»¥ä¸ã便å®ä¸ãã¹ã«ã¤ãã¨å¼ã¶ï¼ã®è¨å®ã®ä»æ¹ãå ã®åå°å ·åãè¨å®ãããAtmopsheric Fogãã®ä½¿ãæ¹ã«ã¤ãã¦è§£èª¬ããã ããã¸ã§ã¯ãã®ä½æ ã¾ãã¯ãã¢ã³ãªã¢ã«ããã¸ã§ã¯ããã©ã¦ã¶ãããæ°è¦ããã¸ã§ã¯ããä½æãããUnreal Engine 4ãèµ·åããã¨ãã¢ã³ãªã¢ã«ããã¸ã§ã¯ããã©ã¦ã¶ããèµ·åããååä½ã£ãããã¸ã§ã¯ãããããã¸ã§ã¯ããå ã«ç»é²ããã¦ããã¯ãã ï¼å³1ï¼ã ãæ°è¦ã®ããã¸ã§ã¯ããã®ã¿ããã¯ãªãã¯ãã¦ãããã¹ã¯ããã/ã³ã³ã½ã¼ã«ãâãã¹ã¿ã¼ã¿ã¼ã³ã³ãã³ããããã¾ããããé¸æããããã¸ã§ã¯ãåã«ãSkySamp
ãUnreal Engineã§ãããC++ã¯ä½¿ãã¾ããï¼ã 転è·æ´»åãä»äºãããåã®æåãã§å¿ ãã¨è¨ã£ã¦ããã»ã©èããã質åã§ãã ãC++ã¯èªããã®ã§ãããUnreal Engineã§ã¯ãã¾ã触ã£ããã¨ã¯ãªãã§ããã ãããªè¿çããããã¨ã¯ãªãã§ããããã Blueprintã§ä½ã¨ããªã£ã¦ãã¾ãããããBlueprintã¯ä½¿ããããã§ãã ãã©ã°ã¤ã³ãä½ã£ããã便å©ãªæ©è½ãä½ããã¨æãã¨ãC++ãPythonã¨ãã£ãã½ã¼ã¹ã³ã¼ãã®å®è£ ãè¦ãã¦ãããæ¹ãè¯ãããã Blueprintã§ã§ãããã¨ãC++ã§æ¸ãæ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¾ããã ã¾ãã¯Blueprintã§å®è£ ãã¦ãC++ã§åç¾ããæ¹æ³ã«ã¤ãã¦æ¸ãã¾ãã 2022å¹´ããUnreal Engine 5ã«ãªã£ãã®ã§å¿æ©ä¸è»¢ï¼ BlueprintãC++ã使ããããã«ãªã£ã¡ããã¾ãããï¼ ãææã ãã©ç¡æã§èªããã ææã ãã©ç¡æã§èªããã
ðãã®æ¬ã«ã¤ã㦠ã²ã¼ã éçºåå¿è ã®æ¹åãã«UnrealEngine5(UE5)ã§ã®ã²ã¼ã éçºã«ã¤ãã¦ãããããã解説ãã¦ããWebæ¬ã«ãªã£ã¦ãã¾ããUE5ã®åºç¤ã®åºç¤ã¨ãªããã¨ãã£ã¿ã®ä½¿ãæ¹ããããã«ã¼ããªã³ãã®ä½¿ãæ¹ããªã©ã解説ãã¦ãããæå¾ã«ã¯ã¢ã¯ã·ã§ã³ã²ã¼ã ãå®è·µç·¨ã¨ãã¦éçºãã¦ããã¾ãããªããã®Webæ¬ã¯Googleã¢ã«ã¦ã³ããããã°PCã ãã§ã¯ãªãã¹ããããèªãã§å¦ç¿ããäºãã§ãã¾ãã ðæ¬ã¯ååã¾ã§å ¨ãã¼ã¸ç¡æã§ã åç« ã®ããã«ã¼ããªã³ãå ¥éãã®ãã¼ã¸ã¾ã§ã§åºç¤å¦ç¿ã¯ä¸æ¦å®çµãã¦ãã,ãã®åç« ã¾ã§å ¨ãã¼ã¸ç¡æå ¬éãã¦ãã¾ããå¼ãç¶ãå¦ã°ãããæ¹ã¯è³¼å ¥ãã¦é ãã¨äºç« ããã«ã¼ããªã³ãã¯ã©ã¹å ¥éã以éã®è³¼å ¥è éå®ãã¼ã¸ãã覧é ãã¾ããæ¬ãè³¼å ¥ããã¨ä»å¾è¿½å ããããã¼ã¸ããã¢ãããã¼ãå«ãã¦æ¬ã®å ¨ã¦ã®ãã¼ã¸ãè¦ãäºãã§ããããã«ãªãã¾ãã詳ããã¯æåã®ãã¼ã¸ããã®æ¬ã«ã¤ãã¦ããã
ðãã®æ¬ã«ã¤ã㦠ã²ã¼ã ã¨ã³ã¸ã³ãUnreal Engine 5ãã使ã£ãã²ã¼ã éçºã®æ¹æ³ãã¾ã¨ããWebã§èªããæ¬ã§ãããã®æ¬ã¯å¶ä½çµäºãã¦ãããæ°ãã«UE5ãã¥ã¼ããªã¢ã«æ¬ãæ¬æ ¼çã«å¶ä½éå§ãã¾ããã UE5ãã¥ã¼ããªã¢ã«ç¬¬ä¸å·»â https://zenn.dev/daichi_gamedev/books/unreal-engine-tutorial å¶ä½ä¸ã®æ¬ä¸è¦§â https://zenn.dev/daichi_gamedev?tab=books
ã¾ãã¯ããããã®å¼æ°ã®æå³ãè¦ã¦ããã¾ãã CategoryName ãã®åã®ã¨ãããã«ãã´ãªåã§ãã UE_LOGã§åºåããããã°ã¯ãå¤ãã®ã«ãã´ãªã«åããã¦ãã¾ãã ã¨ã³ã¸ã³å´ã§ç¨æããã¦ãããã®ã®ä»ãèªåã§ã«ãã´ãªãå®ç¾©ãããã¨ãåºæ¥ã¾ããï¼å¾è¿°ï¼ Verbosity Google翻訳ã§ç´è¨³ããã¨ãåé·ãã¨ããæå³ã ããã§ãã ããã¯ããã°ã®è©³ç´°åº¦ã®ãããªãã®ã§ãã é常使ç¨ããã®ã¯ãä¸è¨ã®ï¼æ®µéã«ãªã£ã¦ãããå¾ã®ãã®ã»ã©è©³ç´°ãªãã°ã¨ããæ±ãã«ãªãã¾ãã Fatalãâ¦ãè´å½çãªã¨ã©ã¼ããã¡ãã¯assertã¨åæ§ã®æ±ãã«ãªãã¾ããããã°ã©ã ã«ãã¬ã¼ã¯ããããã¾ãã Errorãâ¦ãã¨ã©ã¼ãååã®ã¨ããã§ããOutputLogã¦ã£ã³ãã¦ã«ã¯èµ¤è²ã§è¡¨ç¤ºããã¾ãã Warningãâ¦ãè¦åããããååã®ã¨ããã§ããOutputLogã¦ã£ã³ãã¦ã«ã¯é»è²ã§è¡¨ç¤ºããã¾ãã Display / L
æ¦è¦ UnrealEngine ã® DownloadImage ã«ã¤ãã¦ã®è©¦ãã¦ã¿ãã¡ã¢æ¸ãã§ãã ç°å¢ Windows10 Visual Studio 2017 UnrealEngine 4.25 åè 以ä¸ãåèã«ããã¦é ãã¾ããããããã¨ããããã¾ãã UE4 ç»åãã¡ã¤ã«ãURLæå®ã§ãã¦ã³ãã¼ããã UE4 ãDownload Imageãã使ã£ã¦ã¿ã Download Imageã§ãªã¢ã«ã¿ã¤ã ã«ãã¯ã¹ãã£ãæ´æ° UnrealEngine : UAsyncTaskDownloadImage::DownloadImage é¢é£ã½ã¼ã¹ Engine/Source/Runtime/UMG/Public/Blueprint/AsyncTaskDownloadImage.h DownloadImageã¨ã¯ ã²ã¼ã å¤ã«ããç»åã¢ã»ãããåå¾ãã¦è¡¨ç¤ºãããããã®ãã¼ãã§ãã URLæå®(htt
ï¼ ã¯ããã« UE5ã§Download Imageã使ããã¼ã«ã«PCå ã®ç»åããã¯ã¹ãã£åããã¨ãã«ããã¡ã¤ã«ãã¹ã«åè§ã¹ãã¼ã¹ãå ¥ã£ã¦ããããã§èªã¿è¾¼ããªãã¨ããäºè±¡ãããã¾ããã ãã®æã®å¯¾å¦æ¹æ³ã®ã¡ã¢ã§ãã UE4.27ã®é ã¯ãã¹ã«åè§ã¹ãã¼ã¹ãå ¥ã£ã¦ãã¦ããã®ã¾ã¾èªã¿è¾¼ãã¦ããã®ã§ãUE5ã§æåãå¤ãã£ãããã§ãã ç°å¢ Windows 11 Unreal Engine 5.2.1 対å¦æ¹æ³ åè§ã¹ãã¼ã¹ãã%20ãã«ç½®æãããã¨ã§èªã¿è¾¼ããããã«ãªãã¾ããã ä½è«ã§ãããDownloadImageã使ã£ã¦ãã¼ã«ã«PCå ã®ç»åãèªã¿è¾¼ãã¨ãã¯ãä¸è¨ç»åã®ããã«ãã¹ã®å é ã«ãfile:///ããã¤ããã¨èªã¿è¾¼ããããã«ãªãã¾ãã ããã«ä½è«ã§ãããåè§ã¹ãã¼ã¹ãã%20ãã«å¤æãããããªãã¨ããURLã¨ã³ã³ã¼ããã¨ãããã¼ã»ã³ãã¨ã³ã³ã¼ãã£ã³ã°ãã¨å¼ã¶ãããã§ãã åèè¨äº
ã¹ã©ã¤ãæ¦è¦ ã·ã¼ã³(Level)ä¸ã®ã«ã¯ããã解æ¶ããããã«ãããã«ããã¯ã¨ãªã£ã¦ããå¦çãç¹å®ãããã¨ã¯é常ã«éè¦ã§ãããã®è³æã§ã¯åé¡ã¨ãªã£ã¦ããç®æãæ¢ãæé©åãè¡ãåºæ¬çãªæµããç´¹ä»ãã¾ãã
æå»åãã®å¿åé²ã§ãã æ¥ä»ã¨æå» (Blueprint) Blueprint ã§ã¯ãDateTimeãã¨ããæ§é ä½ã§æ¥ä»ã管çã§ããã Now ãã¼ãã§ç¾å¨æå»ãåå¾ã§ããAsDateTime ã§æååã«å¤æã§ãããAsDateTime ã¯ãã¼ã«ã«ã¿ã¤ã ã§ã®è¡¨ç¤ºã«ãªããã©ãUTC表示ã«ãã AsDateTime(From UTC) ã¨ããé¢æ°ãããã DateTimeãæ§é ä½ããBreakãããã°ãããªç§ã®å¤ã¾ã§åããã精度ãã©ã®ããããããã¯ããããªãã ã¬ãã«ãã«ã¼ããªã³ãã«æ¸ãã¦å®è¡ããã¨ä¸ã®ãããªæãã§æå»ã表示ã§ããã ä»æ¥ã®æ¥ä»ãè¿ã Todayï¼æå»ã¯ 0:00 ã«ãªãï¼ãææ¥ãè¿ã GetDay ããããGetDay ã®è¿ãå¤ã¯æ´æ°ã§ã0ãææã1ãç«æã»ã»ã»ã¨ããæãã«ãªãã æå»éã®å¤§å°æ¯è¼ï¼ï¼ã¨ãï¼ï¼ã¨ãï¼ãã§ããã æé (Blueprint) æå»ã¨æå»ã®å·®ï¼æ
UE4ã§ã¯ãã¦ã£ã³ãã¦ã®è§£å度ãå¤ããããã«ã¯ã©ããã«ãããããã³ã³ãã£ã°ãã¡ã¤ã«ãæ¸ãæããªããã°ãªããªããããããã®æ¹æ³ã使ã£ãå ´åãããããã²ã¼ã ãèµ·åãã¦ããéã«è§£å度ãå¤æ´ãããã¨ãã§ããªããä½ãã²ã¼ã ã®ä¸ããå¤æ´ããæ¹æ³ã¯ãªããã¨èª¿ã¹ãã¨ãããBlueprintã使ã£ã¦ã³ã³ã½ã¼ã«ã³ãã³ããå©ããã¨ã§å¤æ´ã§ããããã ããªã³ã¯ã ããããã¬ã¤ã¤ã¼ã«ã³ã³ã½ã¼ã«ã³ãã³ããå©ãã¦ãããããã«ããããªãã ãããªæãã®UIãç¨æãã¦è§£å度ãé¸ã°ããã®ãä¸è¬çã ãã©ãä»åã¯ç°¡åã«UMGã使ã£ã¦HUDä¸ã«ããæ°åãå ¥ãã¦ãã¿ã³ãæ¼ãã¨è§£å度ãå¤æ´ãããBPããä½ã£ã¦ç½®ãã¦ã¿ããUMGã§HUDãä½ãé¨åã«ã¤ãã¦ã¯å ¬å¼ã®ãã¥ã¼ããªã¢ã«ãè¦ãªããä½æããã ããããµãããã 解å度ãå¤æ´ããã³ã³ã½ã¼ã«ã³ãã³ããå©ãã«ã¯ããã®ã³ã³ã½ã¼ã«ã³ãã³ããåçã«çæããå¿ è¦ããããã³ã³ã½ã¼ã«ã³ãã³ãã¯ä¾ãã°ä»¥ä¸
ä½éãéççªç ´ãã¦ããã®ã§ãVRãã£ãããã¹ãããã¨æ±ºããã ãã£ãããªã®ã§é ä¿¡ãã¦ã¢ããã¼ã·ã§ã³ä¸ãã¦ãããã¨æããããã«ãã£ãããªã®ã§UnrealEngineã§é ä¿¡ã¹ã¿ã¸ãªã製ä½ãããã¨æãç«ã£ãã®ã§æ稿 VRãªã®ã§ãã«ãã©ã§ãããªãããããï¼ã¨æã£ãã®ã§ãã«ãã©ãã¾ã ç®æ¨ UnrealEngineã§VRãã£ãããã¹ã²ã¼ã é ä¿¡ã¹ã¿ã¸ãªã製ä½ãã æºåãããã® ã»UnrealEngine ã»OWLãã©ã°ã¤ã³ï¼Unrealã¨OBSãæ¥ç¶ããï¼ ã»OBS ã»TDPTï¼Webã«ã¡ã©ããç»åèªèã§éª¨æ ¼æ¤åºãã¦çä¼¼ãã«ãã©ã§ããï¼
ããã«ã¡ã¯ãã¨ã³ã¸ãã¢ã®å±±ä¸ã§ãã çãããã¨ãã£ã¿ã使ç¨ãã¦ããä¸ã§ ã¨ãã£ã¿å ã®æ¤ç´¢æ©è½ãå©ç¨ãããã¨ãå¤ã ãããã¨æãã¾ãã ä»åã¯ãã®ä¸ã®ãã«âããªã³ã(以ä¸ãBPãã¨å¼ã¶)å ã§ã®æ¤ç´¢ã«é¢ããä¸é¨æ©è½ãç´¹ä»ãã¾ãã â»ãµã³ãã«ããã¸ã§ã¯ããThird Personãã使ç¨ããã¦ããã ãã¾ãã âãããªã® â BPå æ¤ç´¢ã¦ã£ã³ãã¦ã®åºããã BPå ã«ã¦ä»¥ä¸ã®ããããã®æä½ãè¡ãã¾ã â ãWindowãâãFindResultsããæ¼ä¸ ä¸è¨æä½ã«ãã表示ãããæ¤ç´¢ã¦ã£ã³ãã¦ã¯ æ¤ç´¢ç¯å²ããã®BPå ã®ã¿ã¨ãªãã¾ããã æ¤ç´¢å ¥åæ¬å³å´ã®ã¢ã¤ã³ã³ãæ¼ä¸ãããã¨ã§ ããã¸ã§ã¯ãå ã®å ¨ã¦ã®BPã対象ã«æ¤ç´¢ãè¡ããã¨ãã§ãã¾ãã âBPå ¨ä½ã®æ¤ç´¢ã¦ã£ã³ã㦠â 使ããã â æ¤ç´¢ããããã¼ã¯ã¼ããå ¥å ãupdateãã¨ããæååãå«ãã æ¤ç´¢ãè¡ãããå ´åã å ¥åæ¬ã«ãã®ã¾ã¾æ¤ç´¢ããããã¼ã¯ã¼ããå ¥ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}