API

Class KeepAssets

Set of assets to keep when moving a scene into an asset container.

Hierarchy (View Summary)

Index
actionManagers: AbstractActionManager[] = []

ActionManagers available on the scene.

animationGroups: AnimationGroup[] = []

All of the animation groups added to this scene

animations: Animation[] = []

Gets a list of Animations associated with the scene

cameras: Camera[] = []

All of the cameras added to this scene

effectLayers: EffectLayer[] = []

The list of effect layers added to the scene

geometries: Geometry[] = []

The list of geometries used in the scene.

layers: Layer[] = []

The list of layers added to the scene

lensFlareSystems: LensFlareSystem[]

The list of lens flare systems added to the scene

lights: Light[] = []

All of the lights added to this scene

materials: Material[] = []

All of the materials added to this scene In the context of a Scene, it is not supposed to be modified manually. Any addition or removal should be done using the addMaterial and removeMaterial Scene methods. Note also that the order of the Material within the array is not significant and might change.

meshes: AbstractMesh[] = []

All of the (abstract) meshes added to this scene

morphTargetManagers: MorphTargetManager[] = []

The list of morph target managers added to the scene

multiMaterials: MultiMaterial[] = []

All of the multi-materials added to this scene

particleSystems: IParticleSystem[] = []

All of the particle systems added to this scene

postProcesses: PostProcess[] = []

The list of postprocesses added to the scene

proceduralTextures: ProceduralTexture[]

The list of procedural textures added to the scene

reflectionProbes: ReflectionProbe[] = []

The list of reflection probes added to the scene

rootNodes: Node[] = []

Gets the list of root nodes (ie. nodes with no parent)

skeletons: Skeleton[] = []

The list of skeletons added to the scene

sounds: Nullable<Sound[]> = null

The list of sounds

spriteManagers: SpriteManager[] = []

The list of sprite managers added to the scene

textures: BaseTexture[] = []

Textures to keep.

transformNodes: TransformNode[] = []

All of the transform nodes added to this scene In the context of a Scene, it is not supposed to be modified manually. Any addition or removal should be done using the addTransformNode and removeTransformNode Scene methods. Note also that the order of the TransformNode within the array is not significant and might change.

  • get environmentTexture(): Nullable<BaseTexture>

    Texture used in all pbr material as the reflection texture. As in the majority of the scene they are the same (exception for multi room and so on), this is easier to reference from here than from all the materials.

    Returns Nullable<BaseTexture>

  • set environmentTexture(value: Nullable<BaseTexture>): void

    Texture used in all pbr material as the reflection texture. As in the majority of the scene they are the same (exception for multi room and so on), this is easier to reference from here than from all the materials.

    Parameters

    Returns void