Anroidåãã®ãã«ãç°å¢ãæ§ç¯
Unityã§Androidåãã®ãã«ãç°å¢ãä½ãæã«ã¡ãã£ã¨ã ãè¦å´ããã®ã§ã¡ã¢ãMacç°å¢ã§ã®å ´åãæ¸ãã¾ããWindowsç°å¢ã§ã大ä½ä¼¼ããããªæãã®ã¯ãã§ãã
ä»ã¾ã§Androidåãã®ãã«ããããäºãç¡ãã£ãã®ã§ä»åãåãã¦ã®æ§ç¯ä½æ¥ã ã£ãããã¾ãã
Androidã®éçºç°å¢èªä½ã¯é ãæã«ãã£ãäºãæãã¾ããä»åã¯Unityãããã使ããªãäºå®ã®ã§åºæ¥ãã°Eclipseã¯ã¤ã³ã¹ãã¼ã«ããªãæ¹æ³ã§æ§ç¯ãã¾ããã
æé
1. Android SDKãã¤ã³ã¹ãã¼ã«ãここãããã¦ã³ãã¼ããã¦é©å½ãªãã©ã«ãã«ç½®ãã
2. Unityã®è¨å®ç»é¢(ã·ã§ã¼ãã«ãã㯠command+, )ãéãããExternal Toolsãã®ã¿ããé¸æããAndroid SDK Locationããé¸æã㦠1. ã§ãã¦ã³ãã¼ããããã¡ã¤ã«ã解åãããã©ã«ã( android-sdk-macosx ãªã©ã®ååã«ãªã£ã¦ããã¯ãã§ã)ãé¸æã
èªåã¨ãã¦ã¯ããã§OKãã¨æã£ã¦ããã®ã§ããUnityã§ãã«ããã¦ã¿ãã¨ãã«ãéä¸ã§ãAndroid SDK does not include any platforms! Did you run Android SDK setup to install the platform(s)? Minimum platform required for build is Android 4.0 (API level 14)ãã¨è¡¨ç¤ºããã¦å¤±æããããï¼æå®ãããã©ã«ãééã£ãï¼ããªã©ã¨ãæã£ãã®ã§ããå®éã¯æ¬å½ã®æå³ã§ã®SDKãå ¥ã£ã¦ç¡ãã£ãã®ãåå ã§ããã
æ¬å½ã®æå³ã§ã®SDK(API)ãã¤ã³ã¹ãã¼ã«
解åããAndroid SDKã®ãã©ã«ãå
ã® tools/android ãå®è¡ãã¾ãã
ããã¨ãã®æ§ãªç»é¢ã表示ãããã®ã§ç¹å¥çç±ãç¡ããã°ãã®ã¾ã¾ãä»ã®ãã¼ã¸ã§ã³ã®SDKãªã©ãã¤ãã§ã«ã¤ã³ã¹ãã¼ã«ãã¦ããããå ´åã«ã¯è©²å½ã®ãã®ã«ãã§ãã¯ãä»ãã¦ãInstall 8 packageã(8ã®é¨åã¯ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã®æ°ã«ããç°ãªãã¾ã)ãã¿ã³ãæ¼ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã
ã¤ã³ã¹ãã¼ã«ãå®äºããã¨Android SDKã®ãPlatformsããã©ã«ãå
ã«ã¤ã³ã¹ãã¼ã«ããAPI(ä»åã®å ´åã¯API 16)ã®ãã©ã«ãã追å ããã¦ããã確èªåºæ¥ã¾ãã
ãã®ç¶æ ã§ãã«ãããã¨ã°ã£ã¡ããã«ãã«æåãã¾ããã
Android端æ«æ¥ç¶ç¶æ ã®ç¢ºèª
Android端æ«ãèµ·åããç¶æ ã§USBã±ã¼ãã«ã§Macã¨ç¹ãã¿ã¼ããã«ã§ ddms ãå®è¡ããã¨æ¥ç¶ç¶æ³ã®ç¢ºèªãåºæ¥ã¾ãããã®ãã¼ã«ã§ã¯ç»é¢ãã£ããã£ãªã©ãå¯è½ã§ãã
ãã£ã¨ç°¡æçã§è¯ããã° adb devices ãå®è¡ããæ£ããèªèãã¦ããå ´åã«è¡¨ç¤ºããããXXXXXXXXXX deviceã(Xã®æã¯æ°å)ã¨ãã表示ã確èªããæ¹æ³ã§ãæ¥ç¶ã®ç¢ºèªãåºæ¥ã¾ãã
ããã§è¡¨ç¤ºãããã®ã«Unityã§ãã«ãããæã«ç«¯æ«ã«ã¤ã³ã¹ãã¼ã«ãããªãå ´åã¯Unityãåèµ·åããã¨æ¹åãããäºãå¤ãã§ãã