// What's the difference between Nuke and Uninstall? // Nuke doesn't care for dependencies (if present) public void NukePackage(string packageName) { Upbring upbring = Upbring.Instance(); InstalledPackage package = upbring.GetInstalledPackage(packageName); package.Nuke(); upbring.RemovePackage(package); upbring.SaveFile(); }
// What's the difference between Nuke and Uninstall? // Nuke doesn't care for dependencies (if present) public void NukePackage(string packageName) { Upbring upbring = Upbring.Instance(); InstalledPackage package = upbring.GetInstalledPackage(packageName); package.Nuke(); upbring.RemovePackage(package); upbring.SaveFile(); UnityHacks.BuildSettingsEnforcer.EnforceAssetSave(); }
public void NukeAllPackages() { Upbring upbring = Upbring.Instance(); foreach (InstalledPackage package in upbring.InstalledPackage) { package.Nuke(); upbring.RemovePackage(package); } //TODO: Remove file when Upbring properly removes everything Upbring.RemoveFile(); }
public void NukeAllPackages() { Upbring upbring = Upbring.Instance(); using (LogAggregator LA = LogAggregator.InUnity( "{0} packages were successfully nuked", "{0} packages were successfully nuked but warnings were raised", "Some errors occured while nuking {0} packages", upbring.InstalledPackage.Length )) { foreach (InstalledPackage package in upbring.InstalledPackage) { package.Nuke(); upbring.RemovePackage(package); } //TODO: Remove file when Upbring properly removes everything Upbring.RemoveFile(); } }