AssetContainer

Container with a set of assets that can be added or removed from a scene.

Hierarchy

  • AssetContainer

Index

Constructors

constructor

  • Instantiates an AssetContainer.

    Parameters

    • scene: Scene

      The scene the AssetContainer belongs to.

    Returns AssetContainer

Properties

actionManagers

actionManagers: ActionManager[]

ActionManagers populated in the container.

animationGroups

animationGroups: AnimationGroup[]

AnimationGroups populated in the container.

animations

animations: Animation[]

Animations populated in the container.

cameras

cameras: Camera[]

Cameras populated in the container.

effectLayers

effectLayers: EffectLayer[]

Effect layers populated in the container.

geometries

geometries: Geometry[]

Geometries populated in the container.

lensFlareSystems

lensFlareSystems: LensFlareSystem[]

LensFlareSystems populated in the container.

lights

lights: Light[]

Lights populated in the container.

materials

materials: Material[]

Materials populated in the container.

meshes

meshes: AbstractMesh[]

Meshes populated in the container.

morphTargetManagers

morphTargetManagers: MorphTargetManager[]

MorphTargetManagers populated in the container.

multiMaterials

multiMaterials: MultiMaterial[]

MultiMaterials populated in the container.

particleSystems

particleSystems: IParticleSystem[]

ParticleSystems populated in the container.

scene

scene: Scene

The scene the AssetContainer belongs to.

shadowGenerators

shadowGenerators: ShadowGenerator[]

ShadowGenerators populated in the container.

skeletons

skeletons: Skeleton[]

Skeletons populated in the container.

sounds

sounds: Sound[]

Sounds populated in the container.

textures

textures: Texture[]

Textures populated in the container.

transformNodes

transformNodes: TransformNode[]

TransformNodes populated in the container.

Methods

addAllToScene

  • addAllToScene(): void
  • Adds all the assets from the container to the scene.

    Returns void

moveAllFromScene

  • Removes all the assets contained in the scene and adds them to the container.

    Parameters

    • Optional keepAssets: KeepAssets

      Set of assets to keep in the scene. (default: empty)

    Returns void

removeAllFromScene

  • removeAllFromScene(): void
  • Removes all the assets in the container from the scene

    Returns void

Generated using TypeDoc