ã¯ããã«
ã©ãããåéã§ãã
ä»æ¥ã¯æè²å±æ±ºåã ã£ãã®ã§ãããããã§Unity as a Library(UaaL)ã使ç¨ãã¦ãããã¼ã ããããããããã°ãã£ã¦ã¿ããã£ããã©è§¦ãã¦ããªãã£ããªã¨æããéã«èª¿ã¹ã¾ããã
ãããã³ã³ãã¹ãå¾ã§ç²ãã¦ããã®ã§å®è£ ãã¦è©¦ãã®ã¯ã¾ãä»åº¦ã
â»èªåãAndroidãªã®ã§ããä¸å¿ã§ãã
Unity as a Libraryã¨ã¯
Unityã§å¶ä½ããã³ã³ãã³ããAndroidãiOSã®ãã¤ãã£ãã¢ããªã«çµã¿è¾¼ããã¨ãã§ããæè¡ã§ããWindowsã«ã使ç¨ã§ããããARã³ã³ãã³ããã¢ããªã«å°å ¥ããéã«ãå©ç¨ã§ããããã§ãã
ãã«ã
Build Settingsã¯Export Projectã«è¨å®ãã¦apkãä½ããªãå½¢ã§ããã£ã½ãã§ãã
AndroidManifest.xmlã§ç«ã¡ä¸ãæå®è¡ã®ãã®ãªã©ãè¨å®ããå¿ è¦ãããããã
ãã¤ãã£ãã®ã³ã¼ã
Androidã®ãã¤ãã£ãã®ã³ã¼ããæ¸ãããã¨ãã¾ã£ãããªãã®ã§ãä¸ããåå¼·ãå¿ è¦ã ãªãâ¦
以ä¸ã®ãããªè¨äºãåèã«ãã£ã¦ããããã
ãããããã¬ã¤ã¢ã¦ããxmlã§è¨è¿°ãã¦ãã¸ãã¯ãKotlinã§æ¸ãã£ã¦ç解ã§ãããã§ãããâ¦ï¼
幸ããKotlinãæ®æ®µæ¸ãã¦ããç¥ãåããããã®ã§ç¸è«ããã
UaaLãæ¡ç¨ãã¹ããï¼
ããã¯ã¢ããªéçºæã«æèããå¿ è¦ããã¾ããï½ãã¹ã¤ã«Unityãªã³ãªã¼ã§ãã¹ããã¢ããªä½ããã®ã§ããã¤ãã£ãã¨çµã¿åããã¦å¬ãããã¨ãããªãã¨ãããªãã
ææ³
æè²å±ãã¡ããã¡ãåºæ¿ãåãã¾ãããï½ãç¹ã«Android à UaaLã§ã©ã³ãã£ã¼ãä½ã£ã¦ããã®ãè¦ã¦ãã¡ããã¡ãèªåã§ãä½ããããªã£ãã®ã§ããã£ã¦ã¿ããï¼
æéããªãã£ãã®ã§è¶ çãè¨äºã«ãªã£ã¦ãã¾ã£ããä»å¾å®è£ ãé²ããéã«ãã¨ãã追è¨ãã¦ããããã§ãã