public static void DeleteUnusedAssemblies() { EditorCompilationInterface.EmitExceptionAsError(delegate { EditorCompilationInterface.Instance.DeleteUnusedAssemblies(); }); }
public static void SetAllPackageAssemblies(EditorCompilation.PackageAssembly[] packageAssemblies) { EditorCompilationInterface.EmitExceptionAsError(delegate { EditorCompilationInterface.Instance.SetAllPackageAssemblies(packageAssemblies); }); }
public static void SetAllCustomScriptAssemblyJsons(string[] allAssemblyJsons) { EditorCompilationInterface.EmitExceptionAsError(delegate { EditorCompilationInterface.Instance.SetAllCustomScriptAssemblyJsons(allAssemblyJsons); }); }
private static void EmitExceptionAsError(Action action) { try { action(); } catch (Exception exception) { EditorCompilationInterface.LogException(exception); } }
private static T EmitExceptionAsError <T>(Func <T> func, T returnValue) { T result; try { result = func(); } catch (Exception exception) { EditorCompilationInterface.LogException(exception); result = returnValue; } return(result); }
public static EditorCompilation.CompileStatus TickCompilationPipeline(EditorScriptCompilationOptions options, BuildTargetGroup platformGroup, BuildTarget platform) { return(EditorCompilationInterface.EmitExceptionAsError <EditorCompilation.CompileStatus>(() => EditorCompilationInterface.Instance.TickCompilationPipeline(options, platformGroup, platform), EditorCompilation.CompileStatus.Idle)); }
public static bool CompileScripts(EditorScriptCompilationOptions definesOptions, BuildTargetGroup platformGroup, BuildTarget platform) { return(EditorCompilationInterface.EmitExceptionAsError <bool>(() => EditorCompilationInterface.Instance.CompileScripts(definesOptions, platformGroup, platform), false)); }
public static EditorCompilation.TargetAssemblyInfo[] GetAllCompiledAndResolvedCustomTargetAssemblies() { return(EditorCompilationInterface.EmitExceptionAsError <EditorCompilation.TargetAssemblyInfo[]>(() => EditorCompilationInterface.Instance.GetAllCompiledAndResolvedCustomTargetAssemblies(), new EditorCompilation.TargetAssemblyInfo[0])); }
public static string GetCompileScriptsOutputDirectory() { return(EditorCompilationInterface.EmitExceptionAsError <string>(() => EditorCompilationInterface.Instance.GetCompileScriptsOutputDirectory(), string.Empty)); }