Version: 2023.1

PackageInfo.IsPackageRegistered

切换到手册
public static bool IsPackageRegistered (string name);

参数

name The name of the package to look for.

返回

bool Returns true if the named package is registered.

描述

Checks if a specific package is registered with the UnityEditor.AssetDatabase.