Unity
å¤ãè¨äºã§ sprite ãã¤ã³ãã¼ãããéã¯ãSimple Sprite Packer ã®ãã©ã°ã¤ã³ã使ç¨ãã¦ãã¾ãããããæ°å¹´ã®éãUnity ããã¾ã触ãããã¨ãã§ããªãã£ãã®ã§ãããä¹ ãã¶ãã«ã¢ããªãä½ãéã« sprite ã®èªã¿è¾¼ã¿ã§ãã® Assets ã使ç¨ãã㨠obsolete ã®è¡¨â¦
Unity ã®ã¢ããªãä½ã£ã¦ããã¨ãã« FPS ãè¨å®ããæ©ä¼ãããã¾ããã ã¬ãã¼ã¬ã¹ã³ã³ããã¼ã©ã¼ãç·´ç¿ããã¢ããªãä½ããã¨æã£ããã§ãï¼ï¼ï¼¦ï¼°ï¼³ã«åºå®ãã¦ããå¿ è¦ãããã¾ãããã¡ãªã¿ã«ããããªé°å²æ°ã®ã¢ããªã«ãªãã¾ãããï¼Android ã§åããã¦éãâ¦
2022å¹´5æ6æ¥ã« Unity Blog ãããéå»æ大ããªã¥ã¼ã ã® e ããã¯ï¼ã¢ã¼ãã£ã¹ãã®ããã® 2D ã²ã¼ã ã¢ã¼ããã¢ãã¡ã¼ã·ã§ã³ãã©ã¤ãã£ã³ã°ãã®è¨äºããããã¾ããã ã¾ã å 容ã¯ãããããã¾ããããé¢ç½ãããªã®ã§èªã¿é²ãã¦ãããã¨æãã¾ããå人çã«å訳â¦
Addressables ã®ä»çµã¿ is ãªã«ï¼ Addressables ã®ä½¿ãæ¹ ãã¹ã Event Viewer ãã¼ã/ã¢ã³ãã¼ããå¯è¦åãã åè ç»åãªã©ã®ã¢ã»ãããã¼ã¿ãããã¸ã§ã¯ãã«è¿½å ãã¦å©ç¨ããæ¹æ³ã¨ãã¦ã以ä¸ã®ãããªææ³ã主ã«å©ç¨ãããã¨æãã¾ãã Resources Asset Bâ¦
1. AsesetBundle 㨠Resources ã®ã¬ã¤ã 2. Assets, Objects and serialization 2.1 ã¢ã»ããã¨ãªãã¸ã§ã¯ãã®å é¨ 2.2 ãªãã¸ã§ã¯ãéã®åç § 2.3 ãªããã¡ã¤ã« GUID ã¨ãã¼ã«ã« ID ãï¼ 2.4. åæã¢ã»ããã¨ã¤ã³ãã¼ã¿ã¼ 2.5 ã·ãªã¢ã©ã¤ãºã¨ã¤ã³ã¹ã¿ã³ã¹ Moâ¦
MVP ãã¿ã¼ã³ is ãªã«ï¼ Model 㯠POCO ãªãªãã¸ã§ã¯ããï¼ ãµã³ãã« åè ãã®è¨äºã¯ torisoup ããã®ãUniRX/UniTask å®å ¨ç解ãP318 ã® MVP ãã¿ã¼ã³ã«ã¤ãã¦å人çã«å¦ç¿å 容ãã¡ã¢ããè¨äºã§ãã MVP ãã¿ã¼ã³ is ãªã«ï¼ UI ãå®è£ ããã¨ãã®å®è£ ãã¿ã¼â¦
ã¢ããªã®å称ã®è¨å® ããã©ã«ãã®åå空éè¨å® ã¢ã¤ã³ã³ã®è¨å®ï¼Androidï¼ ã¹ãã©ãã·ã¥ã¹ã¯ãªã¼ã³ã®è¨å® ã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ããã«ã åè ã¢ããªãä½æããã¨ãã«æä½éãã£ãã»ããããã¨æã£ãè¨å®ãã¾ã¨ãã¾ããï¼Android 対å¿ï¼ ã¢ããªã®å称ã®è¨â¦
ã¹ã©ã¤ãã¼ã HPï¼ä½åï¼ã²ã¼ã¸ã«ãã ä½å 33% ä»¥ä¸ ã§ Fill Area ãå·®ãæ¿ãã HPï¼ä½åï¼ã²ã¼ã¸ãæ¸ãããµã³ãã« ãµã³ãã« åè ãã¹ããã¦ããããã°ã©ã ã®å¯ç£ç©ã¨ã㦠HP ã¹ã©ã¤ãã¼ãåºæ¥ãã®ã§ã¡ã¢ã EventTrigger ã®ã¡ããã©ãããã¹ããã¼ã¿ã§ããâ¦
æ¥ä»ã¨æå»ã®è¨å®å¤ãåå¾ãããã¤ãã£ããã©ã°ã¤ã³ ãã¤ãã£ããã©ã°ã¤ã³ãå©ç¨ãã Unity ã¹ããªãã Android ã® APK ããã¾ãåºåã§ããªãã¨ã åä½ã®ãã¹ã 対çã®çºå±å½¢ ãµã³ãã« åè ã¹ãã¼ããã©ã³ã®æ¾ç½®ã²ã¼ã ãä½ããã¨æã£ãããéçºè ãå¿ ã注æâ¦
Unity ã®ã¹ã¯ãªãããã¡ã¤ã«ãæ¨æºã®ä½ãæ¹ã ã¨ãCreate/C# Scriptããã¤ããã¨æãã¾ãããååãªãã©ã¼ãããã¨ã¯è¨ããªãã§ããããã»ãã«ã æåã³ã¼ãã OS ã«ããããã MonoBehavior ãç¶æ¿ããªãã¯ã©ã¹ã§ããã¨ãããã ã¨ãã©ãã¯æåãã UniRx ãâ¦
async/await ã¨ã¯ await ãã¤ããã³ã¼ãã¯ã©ã®ãããªå é¨åä½ã«ãªãã ã³ã«ã¼ãã³ã¨ yield return Unity ã®éåæå¦çï¼â ãã«ãã¹ã¬ããï¼ ç¨èªã®ããããã ãµã³ãã« åè ã¿ã¤ãã«ã®ã¨ããããéåæãããã¼ã¯ã¼ãã§ãããã¨ãã°ãã¤ãã®ãããªåããæ´çâ¦
ç°å¢æ§ç¯ ãããã°ï¼ã¢ã¿ããï¼ã®ããæ¹ ãããã°ã®ä¾¿å©ãªè¨å®ã»å¿ç¨ DebuggerDisplay å±æ§ ãããã°ã¨ãã¹ã åè Unity ã®ã³ã¼ãæ¸ãããã¨ã«ãVisual Studioï¼ã³ã¼ãã¨ãã£ã¿ã¼ï¼ã使ã£ã¦ãã³ã¼ãã®ã¹ãããå®è¡ããã¬ã¼ã¯ãã¤ã³ããè¨ç½®ãã¦æ°ã«ãªãç®æâ¦
Visual Studio 2019 ã§ã©ã¤ãã©ãªã¼ããã¸ã§ã¯ããä½æ ã¯ã©ã¹ã©ã¤ãã©ãªã¼ã« Unity ã® DLL ã追å ãã å©ç¨ åè C# ã§æ¸ããã³ã¼ããããããã ããã¼ã¸ã ãã©ã°ã¤ã³ ã¨ã㦠DLL åãã¦ãUnity ã§å©ç¨ããããæ¹ãã¡ã¢ããè¨äºã§ããèªåã§ä½¿ãã©ã¤ãã©â¦
Unity Mobile Notifications Package ãã¤ã³ã¹ãã¼ã«ãã ããã¸ã§ã¯ãè¨å® ã¢ã¤ã³ã³ ã¢ã»ããå ±éã®å½åè¦ç´ã®ä¾ ã¹ããªããã®å®è£ singleton ã¯ã©ã¹ã§ä¿æããä¾ éç¥ããã¹ãããï¼ï¼ä½¿ãæ¹ï¼ ãµã³ãã« åè ãã®è¨äºã¯ Unity ã§ï¼ãã¼ã«ã«ï¼ããã·ã¥éç¥â¦
ãObservedValueãã¯ã©ããããã®ãï¼The new class in Extensions, ObservedValue: what is it for and how to use itï¼ è£è¶³ï¼ObservedValue ã®ã³ã¼ã確èªï¼ ããã©ã¼ãã³ã¹ã«é¢ããæè¦ åè å¤æ°ã®å¤ãå¤åããã¨ãâã ãâã³ã¼ããå®è¡ãããã¨ãããããªâ¦
ãã®è¨äºã¯ãUnityéçºã«é¢ãã50ã®Tips ããã¹ããã©ã¯ãã£ã¹ãï¼ç¿»è¨³ï¼ããèªãã§ã¨ã¦ãåèã«ãªã£ãã®ã§ããã®ç¶ç·¨ã«ãªãã50 Tips and Best Practices for Unity (2016 Edition)ãã®å 容ãè¶ è¨³ï¼åå¼·ã®ããå人çã«è¨³ï¼ãããã®ã§ãã Qiita ã«ãããã¦â¦
RuntimeInitializeOnLoadMethodAttribute 注æ éå»ã®ãã° åè Unity ã®ããã°ã©ã ãä½æãã¦ãã¦ãã²ã¼ã å ¨ä½ãéãã¦ä¸çªæåã«å®è¡ãããï¼é常ã®æ¡ä»¶ã§æåã«å®è¡ãããï¼ã¡ã½ããã使ãããã¨ããããã¨æãã¾ãã ä»ã®ãã®ã§ãã¨ããã¨ãC++ ã C# ã®â¦
æ¡å¤§ï¼ã¹ã±ã¼ã«ï¼ã¨ãã§ã¯ãã®è¿½å éé度ã¨ãã§ã¯ãã®è¿½å ãµã³ãã« åè ãUnity ãã£ã³ãã¹å ã« Scroll View ã使ã£ããã¤ã¢ãã°ããããã¢ãããã®è¨äºã®ç¶ãã§ãã ååã®è¨äºã§ããããã¢ãããããã¤ã¢ãã°ãã·ã³ãã«ã«ä½æãã¾ããããªã®ã§ãå¿ç¨ã¨â¦
ãã¤ã¢ãã°ã®æ§æ ãã¤ã¢ãã°ã®æ§æãèãã ã¹ã¯ãªãã ãµã³ãã« åè ãã¤ã¢ãã°ã表示ãããµã³ãã«ã§ã ãããªæãã§ãCanvas ä¸ã®ãã¿ã³ãæ¼ä¸ããã¨ãç»é¢å ¨ä½ã«èæ¯ã¤ãã®ãã¤ã¢ãã°ï¼ãããã¢ããï¼ã表示ãããµã³ãã«ã§ããï¼ã¨ãã§ã¯ããçç¥ãã¦ãâ¦
Unity ã®åºå表示 Unity DashBoard Unity 㧠Ads ãå©ç¨ããæç¶ã Settings æå¹å Ads ã®ã¹ã¯ãªãã åããã¦ã¿ã åºåã®ãã使ãæ¹ãã¦ã㦠åè Unity ã®åºå表示 Unity ã®ãªãã§ææ©ãåºå表示ããããªããUnity å ¬å¼ã®åºåãã©ãããã©ã¼ã ã®ãUnity Aâ¦
Canvasï¼ç»é¢ãµã¤ãºï¼ã®è¨å® ç»é¢ãµã¤ãºã®ç¢ºèª Pixels Per Unit ãï¼ã«ããªãä¾ï¼ï¼ï¼ Pixels Per Unit ãï¼ã«ããªãä¾ï¼ï¼ï¼ å¿ç¨ç·¨ åè éå»ã®è¨äºã§ã¯ãé常ã©ããã®ã«ã¡ã©ç©ºéã§ï¼ï¼¤ã²ã¼ã ã®æ§æãä½æãã¾ããããã®å¾ããã¹ãã¼ããã©ã³ï¼è¤éãªã¢ã¹â¦
ã·ã¼ã³ã®éãè¶ ãããã¼ã¿å ±æã®ããæ¹ ScriptableObject ãå©ç¨ããã·ã¼ã³ç®¡çã®è¨è¨ä¾ ã·ã¼ã³ç§»åã管çãã ScriptableObject 使ã£ã¦ã¿ãä¾ ãã¤ã³ã LoadSceneMode.Additive ã®æ³¨æç¹ ã·ã¼ã³éã§ãã¼ã¿ãå®å ¨ã«å ±æãããã©ã¯ãã£ã¹ ãµã³ãã« åè Scripâ¦
TextMeshPro ãåãã¦ä½¿ãã¨ãã®ã¤ã³ãã¼ã TextMeshPro 㧠SDF ãã¼ã¿ãä½æãã åãæåãè¤æ°ç»é²ãããã¨ããã¨ã ãã©ã³ãã® SDF ãã¼ã¿ï¼ã¢ãã©ã¹ãã¡ã¤ã«ï¼ãã Material Preset ãçæãã æ¼¢åãå©ç¨ããã¨ã å¥ã®ãã©ã³ãã§ç¹å®ã®æåã代æ¿ãã â¦
ç£è¦ããã¡ã¢ãªã¼éã®ãã¤ã³ã ï¼ãã¢ããªã±ã¼ã·ã§ã³å ¨ä½ãã®æ¶è²»ã¡ã¢ãªã¼ã®åå¾æ¹æ³ Unity Editor (Windows) Android ï¼ãï¼ãUnity ã管çãããã¡ã¢ãªã¼ä½¿ç¨éã®åå¾ æ¶è²»ã¡ã¢ãªã¼éãã©ã®ç¨åº¦ã«æãããï¼ ä½¿ç¨ã¡ã¢ãªã¼ä¾ ä¾ï¼ï¼ãã³ã¸ã§ã³ã¡ã¼ã«ã¼ï¼ ä¾â¦
å®è£ ãããã¨ã®æµã ä½ç½®èª¿æ´ç¨ã®è¦ª Prefab ãã¬ã¢ã® material ãã©ã¡ã¼ã¿ã¼ã®è¨å® ãä¸å¿ã«éã¾ããã¨ãã§ã¯ã ãççºãããã¨ãã§ã¯ã ãµã³ãã« åè æåã«ææç©ãæåºããããªæãã«ãªãã¾ãããããã£ã½ãè¦ããã¨ããããã§ãããROM ã解æãã¦å³å¯â¦
ãã®è¨äºã¯ããããããªè¨èªã»ã²ã¼ã ã«ç¨æããã¦ããä¹±æ°ã®å®è£ ä¾ã¨ãC# ã§å®è£ ãã Xor shift RNGs ã«ããç似乱æ°çæã使ç¨ããé°å²æ°ãã¾ã¨ããè¨äºã§ãã ããããªè¨èª æ¨æºã©ã¤ãã©ãªã¼ã®ä¹±æ° C C# Java Python Ruby JavaScript Unity ã²ã¼ã Xorshifâ¦
å¤ãã½ããã¦ã§ã¢ãä¿åãã¦ããã»ã¼ããã¼ã¿ãã¡ã¤ã«ãéãã¦ã¿ãã¨ãCSV ãã¡ã¤ã«ã ã£ãããªãã¦ãã¨ã 2020 å¹´ã®ä»ã§ãããããã§ãã åä»ãª CSV ãã¡ã¤ã« 使ãæ¹ ãã¹ãã«ããæ¤è¨¼ ãµã³ãã« åè å ´åã«ãã£ã¦ã¯ CSV å½¢å¼ã¨ãã£ã¦ããã¨ãã©ãã¡ãã£ã¨â¦
ã¹ã¯ãã¼ã«ãã¥ã¼ï¼uGUI ã§èªä½ï¼ uGUI ã§ç¨æããã Scroll View ã¬ã¹ãã³ã·ããªãã¶ã¤ã³ã§å©ç¨ãã ãµã³ãã« åè 諸ã ãåèã«ã¹ã¯ãã¼ã«ãã¥ã¼ã使ã£ã¦ã¿ãã®ã§ããã¤ã³ããã¡ã¢ããããªæãã®ãã®ãç°¡åã«ã§ãã¾ããã ã¹ã¯ãã¼ã«ãã¥ã¼ Unity uGUI ã®â¦
æåã«ææç©ãæåºããããªæãã«ãªãã¾ãããããã£ã½ãè¦ããã¨ããããã§ãããROM ã解æãã¦å³å¯ã«ãã£ãããã§ã¯ãªãã§ãã ãã®ããããæãã»ããã£ã ãã¼ã¿ã®è©³ç´°ã¯ãè¨äºã®æå¾ã«ä»åã®ãµã³ãã«ãã¼ã¿ãå ¬éãã¦ããã®ã§ããã¡ããã確èªãã ãâ¦
æåã«ææç©ãæåºããããªæãã«ãªãã¾ãããããã£ã½ãè¦ããã¨ããããã§ãããROM ã解æãã¦å³å¯ã«ãã£ãããã§ã¯ãªãã§ãã æ°æã¡ããæ¶ãæ¹ã¼ ãã¼ã¿ã®è©³ç´°ã¯ãè¨äºã®æå¾ã«ä»åã®ãµã³ãã«ãã¼ã¿ãå ¬éãã¦ããã®ã§ããã¡ããã確èªãã ããã å®è£ â¦