Unityã§Android JARãã¡ã¤ã«ãå¼ã³åºãæãç°¡åãªæ¹æ³ - Androidãã¤ãã£ããã©ã°ã¤ã³ ãã¡ãã§ãAndroidJARãã¡ã¤ã«ãUnityããå¼ã³åºãæ¹æ³ãç´¹ä»ãã¾ããããä»åã¯iOSã®ãã¤ãã£ãã³ã¼ããå¼ã³åºãæ¹æ³ãç´¹ä»ãã¾ãã C#ã¹ã¯ãªããã§ãã¤ãã£ãã³ã¼ããå¼ã¶ using UnityEngine; using System.Runtime.InteropServices; public class NativePlugin { [DllImport("__Internal")] private static extern void hoge_(); public static void hoge() { if (Application.platform != RuntimePlatform.OSXEditor) { hoge_(); } } } ãã¡ã¤ã«åã¯ã¯
{{#tags}}- {{label}}
{{/tags}}