void InitializeMediaPath(ref List <string> ExternalPath) { switch (Application.platform) { case RuntimePlatform.WindowsPlayer: case RuntimePlatform.WindowsEditor: ExternalPath.Add("file:///c://Users/jeong/Downloads/image.jpg"); ExternalPath.Add("file:///c://Users/jeong/Downloads/image2.jpg"); break; case RuntimePlatform.Android: this.transform.parent.GetComponent <CallStaticFunctions>().GetString(); ExternalPath = CallStaticFunctions.GetAllGalleryImagePaths(); //"file:///storage/emulated/0/DCIM/Camera/CAM00442.jpg"; break; } }
void OnGUI() { if (GUILayout.Button("github://proprieties/pickit", GUILayout.Width(200), GUILayout.Height(100))) { Application.OpenURL("https://github.com/proprieties/Use-Android-Inside-Unity"); } if (GUILayout.Button("Next Image", GUILayout.Width(200), GUILayout.Height(100))) { StartCoroutine(LoadTex(value => idxCurrent = value, OnCompleteLoad, OnFailedLoad, ++idxCurrent)); } if (GUILayout.Button("Get Path Test", GUILayout.Width(200), GUILayout.Height(100))) { CallStaticFunctions.GetPath(); } //if (GUILayout.Button("Next Level")) // LoadNextLevel(); }