Example #1
0
        public string[] GetUnityCommandline()
        {
            var unityPathData = myFrontendBackendModel.UnityApplicationData;

            if (!unityPathData.HasValue())
            {
                return(null);
            }
            var unityPath = unityPathData.Value?.ApplicationPath;

            if (unityPath != null && PlatformUtil.RuntimePlatform == PlatformUtil.Platform.MacOsX)
            {
                unityPath = FileSystemPath.Parse(unityPath).Combine("Contents/MacOS/Unity").FullPath;
            }

            return(unityPath == null
                ? null
                : new[] { unityPath, "-projectPath", CommandLineUtil.QuoteIfNeeded(mySolution.SolutionDirectory.FullPath) });
        }