Example #1
0
 /** 登録。
  *
  *      インプットフィールド追加のために、一度呼び出す必要がある。
  *
  */
 public static void Register()
 {
     try{
         WebGL_OpenFileDialog.Fee_Platform_WebGLPlugin_OpenFileDialog_Register();
     }catch (System.Exception t_exception) {
         Tool.DebugReThrow(t_exception);
     }
 }
Example #2
0
        /** OpenFileDialog
         */
        public static void OpenFileDialog(Root_MonoBehaviour a_root_monobehaviour, string a_title, string a_extension)
        {
            //a_root_monobehaviour.openfiledialog_result = null;

            try{
                WebGL_OpenFileDialog.Fee_Platform_WebGLPlugin_OpenFileDialog_Open(a_title, a_extension);
            }catch (System.Exception t_exception) {
                Tool.DebugReThrow(t_exception);
                //a_root_monobehaviour.openfiledialog_result = "";
            }
        }
Example #3
0
        /** [シングルトン]constructor
         */
        private Platform()
        {
            this.root_gameobject      = new UnityEngine.GameObject();
            this.root_gameobject.name = "Platform";
            UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject);
            this.root_monobehaviour = this.root_gameobject.AddComponent <Root_MonoBehaviour>();

                        #if ((!UNITY_EDITOR) && (UNITY_WEBGL))
            {
                WebGL_OpenFileDialog.Register();
            }
                        #endif
        }
Example #4
0
 /** オープンファイルダイアログ。リクエスト。
  */
 public void OpenFileDialog(string a_title, string a_extension)
 {
                 #if (UNITY_EDITOR)
     {
         Editor_OpenFileDialog.OpenFileDialog(this.root_monobehaviour, a_title, a_extension);
     }
                 #elif (UNITY_STANDALONE_WIN)
     {
         Windows_OpenFileDialog.OpenFileDialog(this.root_monobehaviour, a_title, a_extension);
     }
                 #elif (UNITY_WEBGL)
     {
         WebGL_OpenFileDialog.OpenFileDialog(this.root_monobehaviour, a_title, a_extension);
     }
                 #elif (UNITY_ANDROID)
     {
         Android_OpenFileDialog.OpenFileDialog(this.root_monobehaviour, a_title, a_extension);
     }
                 #endif
 }