跳转到内容

ManifestModel

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

Defined in: asset/AddressableManifest.ts:133

allAssets(): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:175

Every asset across all groups.

AddressableManifestAsset[]


assetByKey(key): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:300

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

string

AddressableManifestAsset | null


assetByPath(path): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:305

Asset by its build path.

string

AddressableManifestAsset | null


assetPathsInGroup(name): string[]

Defined in: asset/AddressableManifest.ts:170

Asset paths in a group.

string

string[]


assetsByLabel(label): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:244

Assets carrying label across all groups, deduped by path.

string

AddressableManifestAsset[]


assetsInGroup(name): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:164

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

string

AddressableManifestAsset[]


bundleMode(name): BundleMode

Defined in: asset/AddressableManifest.ts:154

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

string

BundleMode


entries(): object[]

Defined in: asset/AddressableManifest.ts:185

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:257

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

string

AddressableManifestAsset | null


group(name): AddressableManifestGroup | null

Defined in: asset/AddressableManifest.ts:149

string

AddressableManifestGroup | null


groupNames(): string[]

Defined in: asset/AddressableManifest.ts:145

All group names, in manifest order.

string[]


groupsByMode(mode): string[]

Defined in: asset/AddressableManifest.ts:159

Group names whose delivery mode equals mode.

BundleMode

string[]


remoteAssetIdentity(ref): string | null

Defined in: asset/AddressableManifest.ts:326

The stable name of the remote-group asset a ref names — its address, else the key it is filed under. NOT interchangeable with remoteAssetPath: a build path is content-addressed, so it names one revision, while this is what every revision agrees on.

string

string | null


remoteAssetPath(ref): string | null

Defined in: asset/AddressableManifest.ts:316

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:357

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:239

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

string | null


spineCullingLookup(): (skeleton, atlas) => SpineCullingRect | undefined

Defined in: asset/AddressableManifest.ts:218

The culling contract this build ships for a spine PAIR, or undefined.

Both refs, because there is no useful answer about a skeleton alone. The atlas is compared as an IDENTITY — @uuid:…, a path and an address all agree — so one the contract was not made against inherits nothing.

(skeleton, atlas) => SpineCullingRect | undefined


textureImportLookup(): (ref) => ParsedTextureImportSettings | undefined

Defined in: asset/AddressableManifest.ts:200

Per-ref texture import settings for every asset that carries them — what a packaged realm answers RuntimeAssetSource.textureImportSettings with, so a shipped game samples and 9-slices exactly as the editor did.

(ref) => ParsedTextureImportSettings | undefined


static empty(): ManifestModel

Defined in: asset/AddressableManifest.ts:140

ManifestModel


static fromJson(manifest): ManifestModel

Defined in: asset/AddressableManifest.ts:136

AddressableManifest

ManifestModel