ã¯ããã«
Unity Test Runner ã§å®è¡ã§ããæ±ç¨çãªãã¹ãã 20 å以ä¸ã¾ã¨ãã
ãUniCommonTestRunnerãã GitHub ã«å
¬éãã¾ãã
ç®æ¬¡
- ã¯ããã«
- ç®æ¬¡
- ãã¼ã¸ã§ã³
- 使ãæ¹
- å®è¡ã§ãããã¹ãã®ç¨®é¡
- å é度ã»ã³ãµã¼ãç¡å¹ã«ãªã£ã¦ããã
- Android ç¨ã®ãã©ã°ã¤ã³ã®ãã©ãããã©ã¼ã ãé©åã
- Animator Controller ã® Motion ã null ã«ãªã£ã¦ããªãã
- Audio Listener ãåå¨ããªãã
- Audio Listener ãè¤æ°åå¨ããªãã
- 2D ã®ã«ã¡ã©ã®ãã©ã¡ã¼ã¿ãçµ±ä¸ããã¦ããã
- Canvas ã«ã«ã¡ã©ãè¨å®ããã¦ããã
- éæ㪠UI ãªãã¸ã§ã¯ãã®Cull Transparent Mesh ããªã³ã«ãªã£ã¦ããã
- Canvas Scaler ã®ãã©ã¡ã¼ã¿ãçµ±ä¸ããã¦ããã
- DisallowMultipleComponent å±æ§ãé©ç¨ããã¦ããã³ã³ãã¼ãã³ããè¤æ°ã¢ã¿ããããã¦ããªãã
- EventSystem ã® Drag Threshold ãçµ±ä¸ããã¦ããã
- 2D ã®ã·ã¼ã³ã§ Global Illumination ãç¡å¹ã«ãªã£ã¦ããã
- iOS ç¨ã®ãã©ã°ã¤ã³ã®ãã©ãããã©ã¼ã ãé©åã
- ã¢ãã¤ã«ç¨ã®ã·ã§ã¼ãããããªã¢ã«ã«è¨å®ããã¦ããã
- Missing Prefab ã«ãªã£ã¦ãããªãã¸ã§ã¯ããåå¨ããªãã
- Missing ã«ãªã£ã¦ããåç §ãåå¨ããªãã
- Missing Script ãåå¨ããªãã
- Odin ã® Required å±æ§ãé©ç¨ããã¦ããå¤æ°ã«åç §ãè¨å®ããã¦ããã
- OnlyOneInScene å±æ§ãé©ç¨ããã¦ããã³ã³ãã¼ãã³ããã·ã¼ã³ã« 1ã¤ã ããã©ãã
- RectTransform ã® Position ãæ´æ°ã«ãªã£ã¦ããã
- RectTransform ã® Scale ãæ´æ°ã«ãªã£ã¦ããã
- TextMeshProUGUI ã® Raycast Target ããªãã«ãªã£ã¦ããã
- UI.Text ã® Raycast Target ããªãã«ãªã£ã¦ããã
- è£è¶³
ãã¼ã¸ã§ã³
- Unity 2018.3.7f1
使ãæ¹
Unity ã¡ãã¥ã¼ã®ãWindow > General > Test Runnerããé¸æãã¦è¡¨ç¤ºããã
ãTest Runnerãã¦ã£ã³ãã¦ãããã¹ããå®è¡ãããã¨ãã§ãã¾ã
ãã¹ãã«å¤±æããå ´åã¯ã該å½ããã·ã¼ã³ãã²ã¼ã ãªãã¸ã§ã¯ãã®ååãåºåããã¾ã
Unity ã¡ãã¥ã¼ã®ãTools > UniCommonTestRunnerããã
ç¾å¨ã®ã·ã¼ã³ã対象ã«ãã¹ããå®è¡ãããã¨ãã§ãã¾ã
å®è¡ã§ãããã¹ãã®ç¨®é¡
å é度ã»ã³ãµã¼ãç¡å¹ã«ãªã£ã¦ããã
å é度ã»ã³ãµã¼ã使ç¨ããªãããã¸ã§ã¯ãã«ããã¦
å é度ã»ã³ãµã¼ãç¡å¹ã«ãªã£ã¦ããããã¹ãã§ãã¾ã
- é¢é£è¨äº
Android ç¨ã®ãã©ã°ã¤ã³ã®ãã©ãããã©ã¼ã ãé©åã
ãPluginsããã©ã«ãå
ã®ãAndroidããã©ã«ãã«å«ã¾ãã¦ãããã©ã°ã¤ã³ã®
対象ãã©ãããã©ã¼ã ã« iOS ãè¨å®ããã¦ããªããã©ãããã¹ãã§ãã¾ã
- åèãµã¤ãæ§
Animator Controller ã® Motion ã null ã«ãªã£ã¦ããªãã
Animator Controller ã®ä¸ã®ããããã®ã¹ãã¼ãã® Motion ã
null ã«ãªã£ã¦ããªããã©ãããã¹ãã§ãã¾ã
Audio Listener ãåå¨ããªãã
CRI ã®ãããªãµã¦ã³ãããã«ã¦ã§ã¢ã使ç¨ãã¦ããããã¸ã§ã¯ãã§
Audio Listener ã使ç¨ããã¦ããªããã©ãããã¹ãã§ãã¾ã
Audio Listener ãè¤æ°åå¨ããªãã
Unity æ¨æºã®ãªã¼ãã£ãªæ©è½ã使ç¨ãã¦ããããã¸ã§ã¯ãã§
Audio Listener ã1ã¤ã®ã·ã¼ã³ã«è¤æ°åå¨ããªããã©ãããã¹ãã§ãã¾ã
2D ã®ã«ã¡ã©ã®ãã©ã¡ã¼ã¿ãçµ±ä¸ããã¦ããã
2D ã®ããã¸ã§ã¯ãã«ããã¦ãã¹ã¦ã®ã·ã¼ã³ã®
ã«ã¡ã©ã®ãã©ã¡ã¼ã¿ãçµ±ä¸ããã¦ãããã©ãããã¹ãã§ãã¾ã
Canvas ã«ã«ã¡ã©ãè¨å®ããã¦ããã
Render Mode ããScreen Space - CameraãããWorld Spaceãã«ãªã£ã¦ãã Canvas ã«
ã«ã¡ã©ãè¨å®ããã¦ãããã©ãããã¹ãã§ãã¾ã
éæ㪠UI ãªãã¸ã§ã¯ãã®
Cull Transparent Mesh ããªã³ã«ãªã£ã¦ããã
表示ããå¿
è¦ã®ãªãéæ㪠UI ãªãã¸ã§ã¯ãã® Canvas Renderer ã®
Cull Transparent Mesh ããªã³ã«ãªã£ã¦ãããã©ãããã¹ãã§ãã¾ã
- é¢é£è¨äº
Canvas Scaler ã®ãã©ã¡ã¼ã¿ãçµ±ä¸ããã¦ããã
ãã¹ã¦ã®ã·ã¼ã³ã® Canvas Scaler ã®è§£å度ã®è¨å®ã
çµ±ä¸ããã¦ãããã©ãããã¹ãã§ãã¾ã
DisallowMultipleComponent å±æ§ãé©ç¨ããã¦ãã
ã³ã³ãã¼ãã³ããè¤æ°ã¢ã¿ããããã¦ããªãã
using UnityEngine; [DisallowMultipleComponent] public class Example : MonoBehaviour { }
DisallowMultipleComponent å±æ§ãé©ç¨ããã¦ããã³ã³ãã¼ãã³ãã
1ã¤ã®ã²ã¼ã ãªãã¸ã§ã¯ãã«è¤æ°ã¢ã¿ããããã¦ããªããã©ãããã¹ãã§ãã¾ã
EventSystem ã® Drag Threshold ãçµ±ä¸ããã¦ããã
ãã¹ã¦ã®ã·ã¼ã³ã® EventSystem ã® Drag Threshold ã®å¤ã
çµ±ä¸ããã¦ãããã©ãããã¹ãã§ãã¾ã
ï¼ã·ã¼ã³ã«ãã£ã¦ ScrollRect ã®æä½æ§ãç¸éãã¦ããªãã確èªã§ãã¾ãï¼
2D ã®ã·ã¼ã³ã§ Global Illumination ãç¡å¹ã«ãªã£ã¦ããã
2D ã®ã·ã¼ã³ã§ Global Illumination ã®æ©è½ã
ç¡å¹ã«ãªã£ã¦ãããã©ãããã¹ãã§ãã¾ã
- é¢é£è¨äº
iOS ç¨ã®ãã©ã°ã¤ã³ã®ãã©ãããã©ã¼ã ãé©åã
ãPluginsããã©ã«ãå
ã®ãiOSããã©ã«ãã«å«ã¾ãã¦ãããã©ã°ã¤ã³ã®
対象ãã©ãããã©ã¼ã ã« Android ãè¨å®ããã¦ããªããã©ãããã¹ãã§ãã¾ã
ã¢ãã¤ã«ç¨ã®ã·ã§ã¼ãããããªã¢ã«ã«è¨å®ããã¦ããã
Unity æ¨æºã®è»½éãªã¢ãã¤ã«ã·ã§ã¼ãã«ç½®ãæããããã·ã§ã¼ãã
使ç¨ããã¦ãããããªã¢ã«ãåå¨ããªããã©ãããã¹ãã§ãã¾ã
- åèãµã¤ãæ§
Missing Prefab ã«ãªã£ã¦ãããªãã¸ã§ã¯ããåå¨ããªãã
çæå
ã®ãã¬ãããåé¤ãããã²ã¼ã ãªãã¸ã§ã¯ãã
åå¨ããªããã©ãããã¹ãã§ãã¾ã
Missing ã«ãªã£ã¦ããåç §ãåå¨ããªãã
åå¨ããªãã¢ã»ããããªãã¸ã§ã¯ãã®åç
§ãè¨å®ããã¦ãã
ãã©ã¡ã¼ã¿ãåå¨ããªããã©ãããã¹ãã§ãã¾ã
Missing Script ãåå¨ããªãã
åå¨ããªãã¹ã¯ãªãããååãæ£ãããªãã¹ã¯ãªãããã¢ã¿ããããã¦ãã
ã²ã¼ã ãªãã¸ã§ã¯ããåå¨ããªããã©ãããã¹ãã§ãã¾ã
Odin ã® Required å±æ§ãé©ç¨ããã¦ããå¤æ°ã«
åç
§ãè¨å®ããã¦ããã
using Sirenix.OdinInspector; using UnityEngine; public class Example : MonoBehaviour { [Required] public GameObject go; }
Odin ã® Required å±æ§ãé©ç¨ããã¦ããå¤æ°ã«
åç
§ãè¨å®ããã¦ãããã©ãããã¹ãã§ãã¾ã
OnlyOneInScene å±æ§ãé©ç¨ããã¦ãã
ã³ã³ãã¼ãã³ããã·ã¼ã³ã« 1ã¤ã ããã©ãã
using UnityEngine; [OnlyOneInScene] public class Example : MonoBehaviour { }
OnlyOneInScene å±æ§ãé©ç¨ããã¦ããã³ã³ãã¼ãã³ãã
ã·ã¼ã³ã«1ã¤ããåå¨ããªããã©ãããã¹ãã§ãã¾ã
RectTransform ã® Position ãæ´æ°ã«ãªã£ã¦ããã
RectTransform ã® Position ã«æµ®åå°æ°ç¹ä»¥ä¸ãè¨å®ããã¦ãã
ç»åããã¤ã±ã¦è¡¨ç¤ºããã¦ããªããã©ãããã¹ãã§ãã¾ã
RectTransform ã® Scale ãæ´æ°ã«ãªã£ã¦ããã
RectTransform ã® Scale ã«æµ®åå°æ°ç¹ä»¥ä¸ãè¨å®ããã¦ãã
ç»åããã¤ã±ã¦è¡¨ç¤ºããã¦ããªããã©ãããã¹ãã§ãã¾ã
TextMeshProUGUI ã® Raycast Target ããªãã«ãªã£ã¦ããã
ã¯ãªãã¯ã§ããå¿
è¦ã®ãªã TextMeshProUGUI ãªãã¸ã§ã¯ãã®
Raycast Target ããªãã«ãªã£ã¦ãããã©ãããã¹ãã§ãã¾ã
- é¢é£è¨äº
UI.Text ã® Raycast Target ããªãã«ãªã£ã¦ããã
ã¯ãªãã¯ã§ããå¿
è¦ã®ãªã UI.Text ãªãã¸ã§ã¯ãã®
Raycast Target ããªãã«ãªã£ã¦ãããã©ãããã¹ãã§ãã¾ã
- é¢é£è¨äº
è£è¶³
ãUniCommonTestRunnerãã¯ãããã¾ã§ã
æ±ç¨çã«ä½¿ããããªãã¹ããã¾ã¨ããã ãã®ããã¸ã§ã¯ãã§ããã
ä¸é¨ã®ãã¹ãã¯ãã®ã¾ã¾ã ã¨ä½¿ããªããæå³ããçµæã«ãªããªããã¨ãæ³å®ããã¾ã
ï¼ä¾ãã° CRI ã使ç¨ãã¦ãããã¨ãåæã¨ãã¦ãããã¹ããå«ã¾ãã¦ãã¾ãï¼
ãUniCommonTestRunnerãã使ç¨ããå ´åã¯
æå³ããçµæã«ãªããªããã¹ãã¯ä¿®æ£ãåé¤ãã¦ããã ããã°ã¨æãã¾ã