/// <summary> /// Open Package Manager Window and select specified package(if any). /// The string used to identify the package can be any of the following: /// <list type="bullet"> /// <item><description>productId (e.g. 12345)</description></item> /// <item><description>packageName (e.g. com.unity.x)</description></item> /// <item><description>packageId (e.g. [email protected])</description></item> /// <item><description>displayName (e.g. 2D Common)</description></item> /// <item><description>null (no specific package to focus)</description></item> /// </list> /// </summary> /// <param name="packageToSelect">packageToSelect can be identified by packageName, displayName, packageId, productId or null</param> public static void Open(string packageToSelect) { PackageManagerWindow.OpenPackageManager(packageToSelect); }
/// <summary> /// Open Package Manager Window and select specified package (if any) /// </summary> /// <param name="packageNameOrDisplayName">Id or display name of package to select, can be null</param> public static void Open(string packageNameOrDisplayName) { PackageManagerWindow.OpenPackageManager(packageNameOrDisplayName); }