文档

Unity Engine

Unity Engine

TryGetManifestInfo(string, string, out PackageManifestInfo)

Queries the package version database.
阅读时间1 分钟最后更新于 1 个月前

Definition

TryGetManifestInfo(string, string, PackageManifestInfo)

public bool TryGetManifestInfo(string editorVersionPrefix, string packageName, out PackageManifestDatabase.PackageManifestInfo manifest)

Parameters

editorVersionPrefix

The Unity version to query. Usually a future version, to detect what will change during an upgrade.

packageName

The package to query.

The information about the package in the desired version.

Returns

Type

Description

boolReturns true if the database contains information about the supplied package.