跳转到内容

ManifestModel

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

Defined in: asset/AddressableManifest.ts:147

allAssets(): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:216

Every asset across all groups.

AddressableManifestAsset[]


assetByKey(key): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:341

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

string

AddressableManifestAsset | null


assetByPath(path): AddressableManifestAsset | null

Defined in: asset/AddressableManifest.ts:346

Asset by its build path.

string

AddressableManifestAsset | null


assetPathsInGroup(name): string[]

Defined in: asset/AddressableManifest.ts:211

Asset paths in a group.

string

string[]


assetsByLabel(label): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:285

Assets carrying label across all groups, deduped by path.

string

AddressableManifestAsset[]


assetsInGroup(name): AddressableManifestAsset[]

Defined in: asset/AddressableManifest.ts:205

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

string

AddressableManifestAsset[]


bundleMode(name): BundleMode

Defined in: asset/AddressableManifest.ts:195

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

string

BundleMode


entries(): object[]

Defined in: asset/AddressableManifest.ts:226

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

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

string

AddressableManifestAsset | null


group(name): AddressableManifestGroup | null

Defined in: asset/AddressableManifest.ts:190

string

AddressableManifestGroup | null


groupNames(): string[]

Defined in: asset/AddressableManifest.ts:186

All group names, in manifest order.

string[]


groupsByMode(mode): string[]

Defined in: asset/AddressableManifest.ts:200

Group names whose delivery mode equals mode.

BundleMode

string[]


packMembers(): Map<string, Set<string>>

Defined in: asset/AddressableManifest.ts:168

The build paths each pack holds, by pack file.

Map<string, Set<string>>


packOf(path): AssetPackRef | null

Defined in: asset/AddressableManifest.ts:157

The pack holding the asset at build path, or null when it has a file of its own.

string

AssetPackRef | null


remoteAssetIdentity(ref): string | null

Defined in: asset/AddressableManifest.ts:367

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

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): string

Defined in: asset/AddressableManifest.ts:397

Resolve a serialized asset ref (a uuid, an address, or a path) to its build path, falling back to the ref itself. The single manifest→path resolution the shipped runtimes use, and the last word on the name: a build path is whatever the cook staged the file as.

string

string


revision(): string | null

Defined in: asset/AddressableManifest.ts:280

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

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

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

ManifestModel


static fromJson(manifest): ManifestModel

Defined in: asset/AddressableManifest.ts:150

AddressableManifest

ManifestModel