예제 #1
0
        static FileBrowser()
        {
            if (Util.Helper.isEditor)
            {
                //Debug.Log("FileBrowserEditor");
#if UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserEditor();
#endif
            }
            else if (Util.Helper.isMacOSPlatform)
            {
                //Debug.Log("FileBrowserMac");
#if UNITY_STANDALONE_OSX && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserMac();
#endif
            }
            else if (Util.Helper.isWindowsPlatform)
            {
                //Debug.Log("FileBrowserWindows");
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserWindows();
#endif
            }
            else
            {
                //Debug.Log("FileBrowserGeneric");
                platformWrapper = new Wrapper.FileBrowserGeneric();
            }

            //Debug.Log(platformWrapper);
        }
        static FileBrowser()
        {
#if UNITY_STANDALONE_WIN && UNITY_EDITOR_WIN
            if (Util.Helper.isEditor && !Util.Config.NATIVE_WINDOWS)
#else
            if (Util.Helper.isEditor)
#endif
            {
#if UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserEditor();
#endif
            }
            else if (Util.Helper.isMacOSPlatform)
            {
#if UNITY_STANDALONE_OSX || UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserMac();
#endif
            }
            else if (Util.Helper.isWindowsPlatform || Util.Helper.isWindowsEditor)
            {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
                if (Util.Helper.isIL2CPP)
                {
                    Debug.LogWarning("File Browser PRO supports Windows (IL2CPP). Please consider upgrading: " +
                                     Util.Constants.ASSET_PRO_URL);
                    platformWrapper = new Wrapper.FileBrowserGeneric();
                }
                else
                {
                    platformWrapper = new Wrapper.FileBrowserWindows();
                }
#endif
            }
            else
            {
                if (Util.Helper.isWSAPlatform)
                {
                    Debug.LogWarning("File Browser PRO supports UWP (WSA). Please consider upgrading: " + Util.Constants.ASSET_PRO_URL);
                }

                if (Util.Helper.isLinuxPlatform)
                {
                    Debug.LogWarning("File Browser PRO supports Linux. Please consider upgrading: " + Util.Constants.ASSET_PRO_URL);
                }

                platformWrapper = new Wrapper.FileBrowserGeneric();
            }

            if (Util.Config.DEBUG)
            {
                Debug.Log(platformWrapper);
            }
        }
예제 #3
0
        static FileBrowser()
        {
#if UNITY_EDITOR
            platformWrapper = new Wrapper.FileBrowserEditor();
#elif UNITY_STANDALONE_OSX
            platformWrapper = new Wrapper.FileBrowserMac();
#elif UNITY_STANDALONE_WIN
            platformWrapper = new Wrapper.FileBrowserWindows();
#elif UNITY_STANDALONE_LINUX
            platformWrapper = new Wrapper.FileBrowserLinux();
#else
            platformWrapper = new Wrapper.FileBrowserGeneric();
#endif
        }
예제 #4
0
        static FileBrowser()
        {
//#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
#if UNITY_EDITOR_WIN
            if (Util.Helper.isEditor && !Util.Config.NATIVE_WINDOWS)
#else
            if (Util.Helper.isEditor)
#endif
            {
#if UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserEditor();
#endif
            }
            else if (Util.Helper.isMacOSPlatform)
            {
#if UNITY_STANDALONE_OSX
                platformWrapper = new Wrapper.FileBrowserMac();
#endif
            }
            else if (Util.Helper.isWindowsPlatform || Util.Helper.isWindowsEditor)
            {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
                platformWrapper = new Wrapper.FileBrowserWindows();
#endif
            }
            else if (Util.Helper.isLinuxPlatform)
            {
#if UNITY_STANDALONE_LINUX
                platformWrapper = new Wrapper.FileBrowserLinux();
#endif
            }
            else if (Util.Helper.isWSAPlatform)
            {
#if UNITY_WSA && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserWSA();
#endif
            }
            else
            {
                platformWrapper = new Wrapper.FileBrowserGeneric();
            }

            if (Util.Config.DEBUG)
            {
                Debug.Log(platformWrapper);
            }
        }
예제 #5
0
        static FileBrowser()
        {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            if (Util.Helper.isEditor && !Util.Config.NATIVE_WINDOWS)
#else
            if (Util.Helper.isEditor)
#endif
            {
#if UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserEditor();
#endif
            }
            else if (Util.Helper.isMacOSPlatform)
            {
#if UNITY_STANDALONE_OSX && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserMac();
#endif
            }
            else if (Util.Helper.isWindowsPlatform)
            {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
                platformWrapper = new Wrapper.FileBrowserWindows();
#endif
            }
            else if (Util.Helper.isLinuxPlatform)
            {
#if UNITY_STANDALONE_LINUX && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserLinux();
#endif
            }
            else
            {
                if (!Util.Constants.isPro && Util.Helper.isWSAPlatform)
                {
                    Debug.LogWarning("<color=blue>File Browser PRO</color> supports <b>UWP (WSA)</b>. Please consider upgrading: <b>" + Util.Constants.ASSET_PRO_URL + "</b>");
                }

                platformWrapper = new Wrapper.FileBrowserGeneric();
            }

            if (Util.Config.DEBUG)
            {
                Debug.Log(platformWrapper);
            }
        }
예제 #6
0
        static FileBrowser()
        {
            if (Util.Helper.isEditor)
            {
                //Debug.Log("FileBrowserEditor");
#if UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserEditor();
#endif
            }
            else if (Util.Helper.isMacOSPlatform)
            {
                //Debug.Log("FileBrowserMac");
#if UNITY_STANDALONE_OSX && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserMac();
#endif
            }
            else if (Util.Helper.isWindowsPlatform)
            {
                //Debug.Log("FileBrowserWindows");
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserWindows();
#endif
            }
            else if (Util.Helper.isLinuxPlatform)
            {
                //Debug.Log("FileBrowserLinux");
#if UNITY_STANDALONE_LINUX && !UNITY_EDITOR
                platformWrapper = new Wrapper.FileBrowserLinux();
#endif
            }
            else
            {
                if (Util.Helper.isWSAPlatform)
                {
                    Debug.LogWarning("File Browser PRO supports UWP (WSA). Please consider upgrading: " + Util.Constants.ASSET_PRO_URL);
                }

                //Debug.Log("FileBrowserGeneric");
                platformWrapper = new Wrapper.FileBrowserGeneric();
            }

            //Debug.Log(platformWrapper);
        }