static StandaloneFileBrowser() { #if UNITY_STANDALONE_WIN _platformWrapper = new StandaloneFileBrowserWindows(); #elif UNITY_EDITOR _platformWrapper = new StandaloneFileBrowserEditor(); #endif }
static StandaloneFileBrowser() { #if UNITY_STANDALONE_OSX _platformWrapper = new StandaloneFileBrowserMac(); // #elif UNITY_STANDALONE_WIN_DEPRECATED // _platformWrapper = new StandaloneFileBrowserWindows(); #elif UNITY_EDITOR _platformWrapper = new StandaloneFileBrowserEditor(); #endif }
static StandaloneFileBrowser() { #if UNITY_EDITOR _platformWrapper = new Editor.StandaloneFileBrowserEditor(); #elif UNITY_STANDALONE_OSX _platformWrapper = new StandaloneFileBrowserMac(); #elif UNITY_STANDALONE_WIN _platformWrapper = new StandaloneFileBrowserWindows(); #elif UNITY_STANDALONE_LINUX _platformWrapper = new StandaloneFileBrowserLinux(); #endif }
/// <summary> /// Select which type of file browser to use depending on the environment. /// </summary> private static void Initalize() { #if UNITY_STANDALONE_OSX m_PlatformWrapper = new StandaloneFileBrowserMac(); #elif UNITY_STANDALONE_WIN m_PlatformWrapper = new StandaloneFileBrowserWindows(); #elif UNITY_STANDALONE_LINUX m_PlatformWrapper = new StandaloneFileBrowserLinux(); #elif UNITY_EDITOR m_PlatformWrapper = new StandaloneFileBrowserEditor(); #endif }
private static IStandaloneFileBrowser GetPlatformWrapper() { if (_platformWrapper == null) { #if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX _platformWrapper = new StandaloneFileBrowserMac(); #elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN _platformWrapper = new StandaloneFileBrowserWindows(); #endif } return(_platformWrapper); }
static StandaloneFileBrowser() { #if UNITY_STANDALONE_OSX _platformWrapper = new StandaloneFileBrowserMac(); #elif UNITY_STANDALONE_WIN //if (UnityEngine.SystemInfo.operatingSystem.StartsWith("Windows 7")) _platformWrapper = new StandaloneFileBrowserWindows7(); /* else * _platformWrapper = new StandaloneFileBrowserWindows();*/ #elif UNITY_STANDALONE_LINUX _platformWrapper = new StandaloneFileBrowserLinux(); #elif UNITY_EDITOR _platformWrapper = new StandaloneFileBrowserEditor(); #endif }
static StandaloneFileBrowser() { _platformWrapper = new StandaloneFileBrowserWindows(); }