ResourceRealizer constructor
ResourceRealizer(
- SceneDocument document, {
- AssetBundle? bundle,
- EnvironmentAssetLoader? environmentLoader,
- TextureAssetLoader? textureLoader,
Creates a realizer over document. bundle (default rootBundle)
resolves external image assets and fmat materials during preload.
environmentLoader builds an AssetEnvironment from outside the bundle
(the editor loads a user-picked file from disk). textureLoader decodes a
TextureResource.asset from outside the bundle the same way.
Implementation
ResourceRealizer(
this.document, {
AssetBundle? bundle,
this.environmentLoader,
this.textureLoader,
}) : bundle = bundle ?? rootBundle;