ãã®è¨äºã§ã®ãã¼ã¸ã§ã³
Unity 2020.3.25f1
ã¯ããã«
Unityã§ããç¨åº¦ã®è¦æ¨¡ã®ç©ãä½ã£ã¦ããã¨åé¡ã«ãªã£ã¦ããã®ããã³ã¼ããå¤æ´ããå¾ã®å¾ ã¡æéã§ãã
ã³ã³ãã¤ã«ããã¡ã¤ã³ãªãã¼ããè¡ããããããç¨åº¦ã®æéã¯ãããããªãã®ã§ããã
ãã¾ãã«é·ããªãã¨éçºå ¨ä½ã®å¹çã«æªå½±é¿ãåã¼ããããé©åº¦ã«æé©åãå¿ è¦ã§ãã
ã¨è¨ããã¨ã§ä»åã¯ä¸»ã«ä»¥ä¸ã®è¨äºãåèã«ããã°ã©ã å¤æ´å¾ã®å¾ ã¡æéãç縮ããæ¹æ³ã®ãç´¹ä»ã§ãï¼
ã¡ãªã¿ã«ãã®è¨äºã«ããã¨ãã¡ããã¨æé©åãããã°
ã»ã¨ãã©ã®ããã¸ã§ã¯ãã¯5ç§ã§ãªãã¼ãåºæ¥ãããã«ãªãããã§ãâ¦â¦ï¼
Most projects should be able to achieve a 5 second reload time, almost regardless of overall size.
DeepL翻訳
ã»ã¨ãã©ã®ããã¸ã§ã¯ãã§ã¯ãå ¨ä½ã®ãµã¤ãºã«ã»ã¼é¢ä¿ãªãã5ç§ã®ãªãã¼ãã¿ã¤ã ãå®ç¾ã§ããã¯ãã§ãã
ç®æ¬¡
- ã¯ããã«
- ç®æ¬¡
- Unityã®ã¢ãããã¼ã
- Directory Monitoring
- Assembly Definition Files
- 大ããªãã¼ã¿ãã·ãªã¢ã©ã¤ãºå¯è½ã«ããªã
- OnAfterDeserialize, OnBeforeSerialize, ExecuteInEditModeã®ä¹±ç¨ãé¿ãã
- InitializeOnLoad, OnPostProcessAllAssetsã®ä¹±ç¨ãé¿ãã
- ã·ã¼ã³ã®ãµã¤ãºãæ¸ãã
- å¿ è¦ã®ãªãã¦ã£ã³ãã¦ãéãã
- Unityã®åèµ·å
Unityã®ã¢ãããã¼ã
Unityã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ã¢ãããã¼ãããã ãã§å¾ ã¡æéãç縮ãããå ´åãããã¾ãã
ä¾ãã°Unity 2020.2ã§ã¯ã³ã³ãã¤ã«æéæé©åé¢é£ã®è¦ç´ ãå¤ãå«ã¾ãã¦ãã¾ãã
ããã¸ã§ã¯ãã®è¤é度ãå¢ãã¦ããã¨ãæ°ããã³ã¼ãã«å¤æ´ãå ããã¨ãã®ã³ã³ãã¤ã«ã«æéããããããã«ãªã£ã¦ãã¦ããã¼ã ã®ã¯ã¼ã¯ããã¼ãçç£æ§ã«å½±é¿ãåã¼ãå§ãã¾ããUnity 2020.2 ã«åãã¦ãã³ã³ãã¤ã«æéãæé©åããããã«å½¹ç«ã¤è¤æ°ã®æ©è½ãè¨è¨ãã¾ããã
ãã¡ãããã¢ãããã¼ãããå¾ã«ããã¾ã§ã¨åãããã«ããã¸ã§ã¯ããåä½ããä¿è¨¼ã¯ç¡ãã®ã§ã
ã¢ãããã¼ãå¾ã®å¯¾å¿ä½æ¥ã¯å¿
è¦ã«ãªããããããªãç¹ã«ã¯æ³¨æãå¿
è¦ã§ãã
Directory Monitoring
Unityã¯ããã¸ã§ã¯ãå ã®ãã¡ã¤ã«ãå¢ããã»ã©ãå¤æ´ããã§ãã¯ããæéãé·ããªãã¾ããã
ãã®ãã§ãã¯æéãé«é(ã»ã¼0)ã«ããDirectory Monitoringã¨ããæ©è½ãããã¾ãã
(â»Windowséå®ã®æ©è½)
è¨å®æ¹æ³ã¯Edit/Preferencesã«ãã
Generalã®Directory Monitoringã«ãã§ãã¯ãå
¥ããã ãã
Assembly Definition Files
Assembly Definition Filesã使ãã°ã³ã³ãã¤ã«ããç¯å²ãè¨å®ãã
çãç¯å²ã®ã¿ã³ã³ãã¤ã«ããããã«ãã¦æéãç縮ããäºãåºæ¥ã¾ãã
詳ããã¯ä»¥åæ¸ãã以ä¸ã®è¨äºããåç §ã®äºã
ãªããã©ã®ã¢ã»ã³ããªã®ã³ã³ãã¤ã«ã«æéãããã£ã¦ããã®ãã測å®ããã«ã¯
Compilation Time Visualizerããªã¹ã¹ã¡ã§ãã
大ããªãã¼ã¿ãã·ãªã¢ã©ã¤ãºå¯è½ã«ããªã
Unityã¯ã³ã³ãã¤ã«å¾ã®ãã¡ã¤ã³ãªãã¼ãæã«ã·ãªã¢ã©ã¤ãºå¯è½ãªãªãã¸ã§ã¯ããã·ãªã¢ã«åãããã
大ããªãã¼ã¿ãã·ãªã¢ã©ã¤ãºå¯è½ã«ããã®ã¯åºæ¥ãã ãé¿ãã¾ãããã
ãªãããã¡ã¤ã³ãªãã¼ãã®è¨æ¸¬ã«ã¯Editor Iteration Profilerããªã¹ã¹ã¡ã§ãã
OnAfterDeserialize, OnBeforeSerialize, ExecuteInEditModeã®ä¹±ç¨ãé¿ãã
OnAfterDeserializeãOnBeforeSerializeãExecuteInEditMode(ãè¨å®ããã¦ããã¯ã©ã¹ã®Awake)ã¯
ã·ãªã¢ã«åæ(âãã¡ã¤ã³ãªãã¼ãæ)ã«å®è¡ãããããä¹±ç¨ãããã
éãå¦çãå«ããã¨å¾
ã¡æéãå¢å ãã¦ãã¾ããããããããé¿ããã¨å¾
ã¡æéç縮ã«ç¹ããã¾ãã
InitializeOnLoad, OnPostProcessAllAssetsã®ä¹±ç¨ãé¿ãã
ãã¡ã¤ã³ãªãã¼ãå¾ãUnityã¯å¤æ´ãããC#ãã¡ã¤ã«ã®InitializeOnLoadãOnPostProcessAllAssets
ãå®è¡ããããããã¡ããä¹±ç¨ãããã
éãå¦çãå«ããã¨å¾
ã¡æéãå¢å ãã¦ãã¾ããããããããé¿ããã¨å¾
ã¡æéç縮ã«ç¹ããã¾ãã
ã·ã¼ã³ã®ãµã¤ãºãæ¸ãã
ã·ã¼ã³ã«æåããé ç½®ããã¦ãããªãã¸ã§ã¯ããã¹ã¯ãªããã®ãµã¤ãº
ãæ¸ããããéãã·ã¼ã³ã«åå²ããäºã§ãå¾ ã¡æéãç縮åºæ¥ãå ´åãããã¾ãã
ãã ããã¢ã»ãã(ç»åã¨ãã¢ãã«ã¨ã)ã®ãµã¤ãºã§ã¯ãªãéè¦ãªã®ã¯C#ã¯ã©ã¹ã®ãµã¤ãºã§ãã
å¿ è¦ã®ãªãã¦ã£ã³ãã¦ãéãã
Unityã®æ¨æºæ©è½ã®ã¦ã£ã³ãã¦ã«ããã¨ãã£ã¿æ¡å¼µã®ã¦ã£ã³ãã¦ã«ãã
éãã¦ãç©ã¯ãã¡ã¤ã³ãªãã¼ãæã«ã·ãªã¢ã«åããããã³ã³ã¹ãã©ã¯ã¿ãå®è¡ããããããã®ã§ã
使ããªãç©ã¯åºæ¥ãã ãéããã¨å¾ ã¡æéç縮ã«ç¹ããã¾ãã
ã¾ãã¦ã£ã³ãã¦ã®ã³ã³ã¹ãã©ã¯ã¿ã®å¦çãUIã®æç»ã軽ããã(æ¸ãã)äºãå¹æãããã¾ãã
Unityã®åèµ·å
Unityã¯ä½æ¥ãèµ·åãã£ã±ãªãã«ãã¦ããã¨ãã¡ã¤ã³ãªãã¼ãæéãé·ããªãå¾åãããã¾ãã
ãªã®ã§ãUnityãåèµ·åããäºã§å¾ ã¡æéãç縮ãããäºãããã¾ãã
ã¾ããåèµ·ååã«Projectã¦ã£ã³ãã¦ãå³ã¯ãªãã¯ããã¡ãã¥ã¼ã«ãã
Reimport Allãå®è¡ããæ¹ãè¯ãå ´åãããã¾ãã