Unity2019.2
ECSã§NavMeshã使ããã å æ¥è¡ããã1WeekGameJamã®å®æ³ã«ã¦ã¦ããã£ã¡ãããèµ°ãåãã²ã¼ã ãããããããè¦ã¦ä½ã¨ãªãECSï¼SubSceneï¼ã§ãNavMeshã«ãã移åå¶éã使ç¨ãããã¨æã£ãã®ã§ãããæ¹ãèãã¦ã¿ã¾ããã èãçã«ã¯å¤§æã«æ¸ãããããããè½â¦
ä»åã¯å¾®å¦ã«è©³ç´°ãªèª¬æã®ãªãISystemStateComponentDataã¨ããæ©è½ãç´¹ä»ãã¾ãã EntityãDestroyããã¦ãç ´æ£ãããªãã³ã³ãã¼ãã³ã Entityçæã»ç ´æ£ã®ã¿ã¤ãã³ã°ã§å¦çãä¸åå®è¡ãã åæåæã®å¦çï¼Awakeçãªï¼ åæåå¾ã®æ¯ãã¬ã¼ã å®è¡ããå¦çï¼â¦
ãã®è¨äºã¯Unity 2019.2.8f1ã¨Entities 0.1.1 ãå©ç¨ãã¦ãã¾ããã¾ãè¨è¨ãã¤ã±ã¦ãªãã®ã§ä¿®æ£ããã¦ãã¾ããããªæãã¯ããã¾ãããç¾ç¶SubSceneã試ãä¸ã§ç¥ããªãã§è¦å´ããã®ã§ã¡ã¢ãã¾ãã SubSceneã§ISharedComponentDataã使ããªã ã¨ããããIShareâ¦
DOTSâ¦ç¹ã«ECSã§è²ã ã¨ãã£ã¦ããã¨ãå é¨ã®ãã¼ã¿ã¯åããªã®ã«åãéãããã§å¤æããªãã¨ãããªãã¨ããã±ã¼ã¹ãããã¾ãã ä¾ãã° float ã®ãããã¡ãæµãè¾¼ãã§ãããå¦çãè¡ãAPIããã£ãæããã¼ã«ã«ã®ãã¼ã¿ã§ NativeArray<FloatData> ã®ãããªæ§é ä½ã®é åã¯ç´</floatdata>â¦
ã¹ãã¼ã¸ã«æ¨ã岩ãé ç½®ããã ä»åããã㨠æé ï¼ï¼æºå æé ï¼ï¼é ç½®ããPrefabã®ç»é² æé ï¼ï¼ãã©ã·ã§å¡ã è£è¶³ é¢é£ ProBuilderã§å°é¢ãä½ãå ´å ã¹ãã¼ã¸ã«æ¨ã岩ãé ç½®ããã ã¹ãã¼ã¸ãä½ãéã æ¨ã岩ãã©ã³ãã ã«é ç½®ããã ã¨ããç©ãããã¾ããâ¦
æ°ããInput Systemã¯å°ãé¢åããã PlayerInputã使ç¨ãã PlayerInputã®å©ç¨æé ãã¼å ¥åãã²ã¼ã ãããã®åå¾ é¢é£ æ°ããInput Systemã¯å°ãé¢åããã æ°ããInput Systemã§ãããæ£ç´ãªæè¦ã¨ãã¦é¢åãããã¨ããã®ãããã¾ããã¢ã¯ã·ã§ã³ã«ãã¼ãâ¦
ãã¼ãã£ã«ãããã«å¯¾å¿ããã æé ï¼ï¼UIãä½ã æé ï¼ï¼UIã®ãã¿ã³ãæ¼ãããå¼¾ãåºã æé ï¼ï¼ã¹ãã£ãã¯ãåããããåã ãªãã±ï¼ãã¿ã³æä½ã§ãã¬ã¤ã¤ã¼ãåãã é¢é£ ãã¼ãã£ã«ãããã«å¯¾å¿ããã æ°ããInput Systemã§ãã¼ãã£ã«ããããä½ã£ã¦ã¿ã¾â¦
以åæ¸ããæ°ããInput Systemã®è¨äºã®æ¸ãç´ãã§ãã æ°ããInput Systemï¼1.0ï¼ å°å ¥ ä½ããã® æé ï¼ï¼Input Actionsãä½ã æé ï¼ï¼ãã£ã©ã¯ã¿ã¼ãåããï¼ã³ã¼ã«ããã¯ã§åããå ´åï¼ æé ï¼ï¼ãã£ã©ã¯ã¿ã¼ãåããï¼ãã¼ãªã³ã°ãã¦åããå ´åï¼ ãã¼ã³â¦
ã«ãã¯ã¢ãããã¼ãã«ã使ãã Burstã§ã«ãã¯ã¢ãããã¼ãã«ã使ãã ãµã³ãã« é¢é£ ã«ãã¯ã¢ãããã¼ãã«ã使ãã ã«ãã¯ã¢ãããã¼ãã«ï¼è¤éãªè¨ç®å¦çãåç´ãªé åã®åç §å¦çã§ç½®ãæãã¦å¹çåãå³ãããã«ä½ããããé åãé£æ³é åãªã©ã®ãã¼ã¿æ§é ã®â¦
ä¸é¨ã®ã¢ãã«ã«ã ããè²ããããã¹ãããã»ã¹ããããªã æ¨æ¥ã®å¿ç¨ã§ãä¸é¨ã®ã¢ãã«ã«ã ããã¹ãããã»ã¹ãããããªãããã«ãã¾ãã ä¸é¨ã®ã¢ãã«ã ããã¹ãããã»ã¹ã®å½±é¿ããããªãããã«ãã æé 注æç¹ ä¸é¨ã®ã¢ãã«ã ããã¹ãããã»ã¹ã®å½±é¿ããããªâ¦
LWRPã¯ã«ã¡ã©ã®ã¹ã¿ãã¯ãã§ããªã PostProcessingã®å¾ã«UIã¨ãã¼ãã£ã¯ã«ãæç»ãã UIã®éã«ãã¼ãã£ã¯ã«ãæã 注æç¹ PCãæ°ãããã¦ããã®åæ´æ°ã§ãã ç°å¢ï¼Unity 2019.2f8ãLightWeight RP 6.9.1 LWRPã¯ã«ã¡ã©ã®ã¹ã¿ãã¯ãã§ããªã ããããã¨ä¾¿å©ãªâ¦
Unity 2019.2ãããTryGetComponentã¨ããAPIã追å ããã¾ãããä½æãéãGetComponentã§åå¾ããéããªããè¦è¦ãããªãAPIããã£ã¦ããã£ãã®ã¯ããã ãã®è©±ã TryGetComponent ããã©ã¼ãã³ã¹ã¯ï¼ TryGetComponent ä»ã¾ã§ãã³ã³ãã¼ãã³ããå²ãå½ã¦ããâ¦
ä»åã¯LWRPã®2DRendererã§ShaderGraphã使ç¨ãã¦ã¿ã¾ãã 2Dãã¤ãã©ã¤ã³ Shader Graph 使ã£ã¦ã¿ã 注æäºé 2Dãã¤ãã©ã¤ã³ ã³ãã©ãåç § tsubakit1.hateblo.jp Shader Graph ãã®2Dãã¤ãã©ã¤ã³ã§ã¯ãåç´ãªLit/Unlitã®ã·ã§ã¼ãã¼ã ãã§ãªã2Dç¨ã®ãã¹ã¿ã¼â¦
ä»åã¯æ¨æ¥ãã©ã£ã¨æ¸ãããæéãã©ã¤ãã§è¡¨ç¾ããã¢ããã¼ãã«ã¤ãã¦ã§ãã æå³çã«æã空éãä½ã ã©ã¤ãã®æ¸ç®è¨å®ãç»é² å®éã«æé»ã®å ãçºããçºå ä½ãé ç½®ãã 注æç¹ æå³çã«æã空éãä½ã ã¹ãã¼ã¸ãä½ãã¨ãã éè¦ã§ããäºã示ãããã«æããâ¦
ä»åã¯LWRPã«è¿½å ããã2Dã©ã¤ãã試ãã¦ã¿ã¾ãã 2Dã«ã©ã¤ã å°å ¥æé ã¨ããããã©ã¤ãã試ã é°å½±è¡¨ç¾ã®è¿½å 注æäºé 2Dã«ã©ã¤ã æè¿ã®æµ·å¤ã§2Dãªã²ã¼ã ã§ã¯ã2Dã§ãã©ã¤ãã£ã³ã°â¦æ£ããã¯æ³ç·å¹æã§å æºã®ä½ç½®ã示ãã¦ããã²ã¼ã ãããè¦ã¾ãã ãã®ãâ¦