Class PackageSelfUpdater
- Namespace
- JLChnToZ.VRC.Foundation.Editors
Self updater for VPM based packages.
public class PackageSelfUpdater
- Inheritance
-
PackageSelfUpdater
- Inherited Members
- Extension Methods
Constructors
PackageSelfUpdater(Assembly, string, string)
Create a new instance of PackageSelfUpdater.
public PackageSelfUpdater(Assembly assembly, string listingsID, string listingsURL)
Parameters
assemblyAssemblyThe assembly contained in the package.
listingsIDstringThe ID of the listings repository.
listingsURLstringThe URL of the listings repository.
PackageSelfUpdater(PackageInfo, string, string)
Create a new instance of PackageSelfUpdater.
public PackageSelfUpdater(UnityEditor.PackageManager.PackageInfo packageInfo, string listingsID, string listingsURL)
Parameters
packageInfoPackageInfoThe package info.
listingsIDstringThe ID of the listings repository.
listingsURLstringThe URL of the listings repository.
Properties
AvailableVersion
The available version of the package.
public string AvailableVersion { get; }
Property Value
CurrentVersion
The current version of the package.
public string CurrentVersion { get; }
Property Value
EnableSelfCheck
Whether to enable self-check for updates.
public bool EnableSelfCheck { get; set; }
Property Value
IsInstalledManually
Whether the package is installed manually, not via VPM tools such as VCC.
public bool IsInstalledManually { get; }
Property Value
PackageName
The package name.
public string PackageName { get; }
Property Value
SelfInstance
The self instance of PackageSelfUpdater, which handles the self-update of the package containing this class.
public static PackageSelfUpdater SelfInstance { get; }
Property Value
Methods
CheckInstallation()
Check the installation status.
public void CheckInstallation()
CheckInstallationInBackground()
Check the installation status in background.
public void CheckInstallationInBackground()
ConfirmAndUpdate()
Update the package.
public void ConfirmAndUpdate()
Remarks
This method requires user interaction.
DrawUpdateNotifier()
Draw the update notifier to anywhere you want. This must be called inside an editor GUI block.
public void DrawUpdateNotifier()
ResolveInstallation()
Migrate to use VPM tools and update the package.
public void ResolveInstallation()
Remarks
This method requires user interaction.
Events
OnVersionRefreshed
Event triggered when the version is refreshed.
public event Action OnVersionRefreshed