AssetBundles.MonoInstallationFinder.GetMonoInstallation C# (CSharp) Method

GetMonoInstallation() public static method

public static GetMonoInstallation ( ) : string
return string
        public static string GetMonoInstallation()
        {
            #if INCLUDE_MONO_2_12
            return GetMonoInstallation("MonoBleedingEdge");
            #else
            return GetMonoInstallation("Mono");
            #endif
        }

Same methods

MonoInstallationFinder::GetMonoInstallation ( string monoName ) : string

Usage Example

Beispiel #1
0
        /// <summary>
        /// 运行本地资源服务器
        /// </summary>
        static void Run()
        {
            string pathToAssetServer = Path.Combine(Application.dataPath,
                                                    "AssetBundleManager/Editor/AssetBundleServer.exe");
            string pathToApp = Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/'));

            KillRunningAssetBundleServer();

            // 写入本地资源服务器地址
            BuildScript.WriteServerURL();

            string args = Path.Combine(pathToApp, "AssetBundles");

            args = string.Format("\"{0}\" {1}", args, Process.GetCurrentProcess().Id);
            ProcessStartInfo startInfo =
                ExecuteInternalMono.GetProfileStartInfoForMono(
                    MonoInstallationFinder.GetMonoInstallation("MonoBleedingEdge"), "4.0", pathToAssetServer, args, true);

            startInfo.WorkingDirectory = Path.Combine(System.Environment.CurrentDirectory, "AssetBundles");
            startInfo.UseShellExecute  = false;
            Process launchProcess = Process.Start(startInfo);

            if (launchProcess == null || launchProcess.HasExited == true || launchProcess.Id == 0)
            {
                //Unable to start process
                UnityEngine.Debug.LogError("Unable Start AssetBundleServer process");
            }
            else
            {
                //We seem to have launched, let's save the PID
                instance.m_ServerPID = launchProcess.Id;
            }
        }
All Usage Examples Of AssetBundles.MonoInstallationFinder::GetMonoInstallation