跳转到内容

ManifestModel

此内容尚不支持你的语言。

Defined in: asset/AddressableManifest.ts:104

Queryable view over an AddressableManifest. The manifest JSON is the wire format; this is the runtime single source of truth for group / label / bundle-mode questions, so loaders and exporters never re-walk groups by hand and never re-interpret the bare bundleMode string.

allAssets(): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:146

Every asset across all groups.

AddressableManifestAsset[]


assetByKey(key): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:229

Asset by its group-record key (the uuid in editor/WeChat manifests).

string

AddressableManifestAsset | null


assetByPath(path): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:234

Asset by its build path.

string

AddressableManifestAsset | null


assetPathsInGroup(name): string[]

Defined in: asset/AddressableManifest.ts:141

Asset paths in a group.

string

string[]


assetsByLabel(label): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:173

Assets carrying label across all groups, deduped by path.

string

AddressableManifestAsset[]


assetsInGroup(name): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:135

Assets in a group (empty for an unknown group).

string

AddressableManifestAsset[]


bundleMode(name): BundleMode

Defined in: asset/AddressableManifest.ts:125

Typed delivery mode of a group (unknown group → local).

string

BundleMode


entries(): object[]

Defined in: asset/AddressableManifest.ts:156

Every asset carrying its owning group name and record key — the iteration the hot-update diff walks (allAssets() drops both).

object[]


findAsset(pathOrAddress): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:186

Find an asset by its path or its address (null if absent).

string

AddressableManifestAsset | null


group(name): AddressableManifestGroup | null

Defined in: asset/AddressableManifest.ts:120

string

AddressableManifestGroup | null


groupNames(): string[]

Defined in: asset/AddressableManifest.ts:116

All group names, in manifest order.

string[]


groupsByMode(mode): string[]

Defined in: asset/AddressableManifest.ts:130

Group names whose delivery mode equals mode.

BundleMode

string[]


remoteAssetPath(ref): string | null

Defined in: asset/AddressableManifest.ts:245

Build path of a remote-group asset by ANY of its keys — record key (uuid), address (logical source path, bare and /-rooted), or build path — or null when the ref is not a remote-delivered asset. Lets a resolver route scene @uuid refs to remote assets through the CDN (so they hot-update with the manifest), while local / lazy assets keep their normal resolution.

string

string | null


resolvePath(ref, normalize?): string

Defined in: asset/AddressableManifest.ts:271

Resolve a serialized asset ref (a uuid, an address, or a path) to its build path. normalize maps a ref to its expected build path (e.g. toBuildPath); it is applied before the lookups and is the fallback when nothing matches. This is the single manifest→path resolution used by the shipped runtimes — callers never re-walk groups to build their own.

string

(ref) => string

string


revision(): string | null

Defined in: asset/AddressableManifest.ts:168

The manifest’s build content revision (see deriveManifestRevision), or null on a legacy manifest that predates the field.

string | null


static empty(): ManifestModel

Defined in: asset/AddressableManifest.ts:111

ManifestModel


static fromJson(manifest): ManifestModel

Defined in: asset/AddressableManifest.ts:107

AddressableManifest

ManifestModel