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.
Methods
Section titled “Methods”allAssets()
Section titled “allAssets()”allAssets():
AddressableManifestAsset[]
Defined in: asset/AddressableManifest.ts:146
Every asset across all groups.
Returns
Section titled “Returns”assetByKey()
Section titled “assetByKey()”assetByKey(
key):AddressableManifestAsset|null
Defined in: asset/AddressableManifest.ts:229
Asset by its group-record key (the uuid in editor/WeChat manifests).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”AddressableManifestAsset | null
assetByPath()
Section titled “assetByPath()”assetByPath(
path):AddressableManifestAsset|null
Defined in: asset/AddressableManifest.ts:234
Asset by its build path.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”AddressableManifestAsset | null
assetPathsInGroup()
Section titled “assetPathsInGroup()”assetPathsInGroup(
name):string[]
Defined in: asset/AddressableManifest.ts:141
Asset paths in a group.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
assetsByLabel()
Section titled “assetsByLabel()”assetsByLabel(
label):AddressableManifestAsset[]
Defined in: asset/AddressableManifest.ts:173
Assets carrying label across all groups, deduped by path.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”assetsInGroup()
Section titled “assetsInGroup()”assetsInGroup(
name):AddressableManifestAsset[]
Defined in: asset/AddressableManifest.ts:135
Assets in a group (empty for an unknown group).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”bundleMode()
Section titled “bundleMode()”bundleMode(
name):BundleMode
Defined in: asset/AddressableManifest.ts:125
Typed delivery mode of a group (unknown group → local).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”entries()
Section titled “entries()”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).
Returns
Section titled “Returns”object[]
findAsset()
Section titled “findAsset()”findAsset(
pathOrAddress):AddressableManifestAsset|null
Defined in: asset/AddressableManifest.ts:186
Find an asset by its path or its address (null if absent).
Parameters
Section titled “Parameters”pathOrAddress
Section titled “pathOrAddress”string
Returns
Section titled “Returns”AddressableManifestAsset | null
group()
Section titled “group()”group(
name):AddressableManifestGroup|null
Defined in: asset/AddressableManifest.ts:120
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”AddressableManifestGroup | null
groupNames()
Section titled “groupNames()”groupNames():
string[]
Defined in: asset/AddressableManifest.ts:116
All group names, in manifest order.
Returns
Section titled “Returns”string[]
groupsByMode()
Section titled “groupsByMode()”groupsByMode(
mode):string[]
Defined in: asset/AddressableManifest.ts:130
Group names whose delivery mode equals mode.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string[]
remoteAssetPath()
Section titled “remoteAssetPath()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null
resolvePath()
Section titled “resolvePath()”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.
Parameters
Section titled “Parameters”string
normalize?
Section titled “normalize?”(ref) => string
Returns
Section titled “Returns”string
revision()
Section titled “revision()”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.
Returns
Section titled “Returns”string | null
empty()
Section titled “empty()”
staticempty():ManifestModel
Defined in: asset/AddressableManifest.ts:111
Returns
Section titled “Returns”ManifestModel
fromJson()
Section titled “fromJson()”
staticfromJson(manifest):ManifestModel
Defined in: asset/AddressableManifest.ts:107
Parameters
Section titled “Parameters”manifest
Section titled “manifest”Returns
Section titled “Returns”ManifestModel