ResourceRealizer constructor

ResourceRealizer(
  1. SceneDocument document, {
  2. AssetBundle? bundle,
  3. EnvironmentAssetLoader? environmentLoader,
  4. 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;