static UnityBuildActions() { Settings = new UnityEditorToolSettings(); Arguments = new UnityEditorToolArguments(); Arguments.BuildTargetExecutable = "Game"; Arguments.BuildTargetPath = "bin"; }
void Merge(UnityEditorToolSettings copy) { if (copy.RealTimeLog != null) { RealTimeLog = copy.RealTimeLog; } if (copy.ToolPath != null) { ToolPath = copy.ToolPath; } if (copy.ToolTimeout != null) { ToolTimeout = copy.ToolTimeout; } if (copy.WorkingDirectory != null) { WorkingDirectory = copy.WorkingDirectory; } if (copy.ArgumentCustomization != null) { ArgumentCustomization = copy.ArgumentCustomization; } if (copy.EnvironmentVariables != null) { if (EnvironmentVariables == null) { EnvironmentVariables = new Dictionary <string, string>(copy.EnvironmentVariables); } else { foreach (var pair in copy.EnvironmentVariables) { EnvironmentVariables[pair.Key] = pair.Value; } } } }
public UnityEditorToolSettings(UnityEditorToolSettings settings) { Merge(settings); }