Interface: AssetInitOptions

AssetInitOptions

Initialization options object for the Assets Class.

Properties:
Name Type Description
basePath string

a base path for any assets loaded

bundleIdentifier BundleIdentifierOptions

advanced - override how bundlesIds are generated

defaultSearchParams string | Record<string, any>

a default URL parameter string to append to all assets loaded

manifest string | AssetsManifest

a manifest to tell the asset loader upfront what all your assets are this can be the manifest object itself, or a URL to the manifest.

preferences Partial<AssetsPreferences>

Optional loader preferences

skipDetections boolean

If true, don't attempt to detect whether browser has preferred formats available. May result in increased performance as it skips detection step.

texturePreference {
   resolution?: number | number[],
   format?: ArrayOr<string>
}

optional preferences for which textures preferences you have when resolving assets for example you might set the resolution to 0.5 if the user is on a rubbish old phone or you might set the resolution to 2 if the user is on a retina display

Members

basePath string

a base path for any assets loaded

bundleIdentifier BundleIdentifierOptions

advanced - override how bundlesIds are generated

defaultSearchParams string | Record<string, any>

a default URL parameter string to append to all assets loaded

manifest string | AssetsManifest

a manifest to tell the asset loader upfront what all your assets are this can be the manifest object itself, or a URL to the manifest.

preferences Partial<AssetsPreferences>

Optional loader preferences

skipDetections boolean

If true, don't attempt to detect whether browser has preferred formats available. May result in increased performance as it skips detection step.

texturePreference {
   resolution?: number | number[],
   format?: ArrayOr<string>
}

optional preferences for which textures preferences you have when resolving assets for example you might set the resolution to 0.5 if the user is on a rubbish old phone or you might set the resolution to 2 if the user is on a retina display