AbstractScene

Base class of the scene acting as a container for the different elements composing a scene. This class is dynamically extended by the different components of the scene increasing flexibility and reducing coupling

Hierarchy

Index

Properties

actionManagers

Find examples in Playground
actionManagers: ActionManager[]

ActionManagers available on the scene.

animationGroups

Find examples in Playground
animationGroups: AnimationGroup[]

All of the animation groups added to this scene

see

http://doc.babylonjs.com/how_to/group

animations

Find examples in Playground
animations: Animation[]

Gets a list of Animations associated with the scene

cameras

Find examples in Playground
cameras: Camera[]

All of the cameras added to this scene

see

http://doc.babylonjs.com/babylon101/cameras

effectLayers

Find examples in Playground
effectLayers: Array<EffectLayer>

The list of effect layers (highlights/glow) added to the scene

see

http://doc.babylonjs.com/how_to/highlight_layer

see

http://doc.babylonjs.com/how_to/glow_layer

geometries

Find examples in Playground
geometries: Geometry[]

The list of geometries used in the scene.

layers

Find examples in Playground
layers: Array<Layer>

The list of layers (background and foreground) of the scene

lensFlareSystems

Find examples in Playground
lensFlareSystems: Array<LensFlareSystem>

The list of lens flare system added to the scene

see

http://doc.babylonjs.com/how_to/how_to_use_lens_flares

lights

Find examples in Playground
lights: Light[]

All of the lights added to this scene

see

http://doc.babylonjs.com/babylon101/lights

materials

Find examples in Playground
materials: Material[]

All of the materials added to this scene

see

http://doc.babylonjs.com/babylon101/materials

meshes

Find examples in Playground
meshes: AbstractMesh[]

All of the (abstract) meshes added to this scene

morphTargetManagers

Find examples in Playground
morphTargetManagers: MorphTargetManager[]

The list of morph target managers added to the scene

see

http://doc.babylonjs.com/how_to/how_to_dynamically_morph_a_mesh

multiMaterials

Find examples in Playground
multiMaterials: MultiMaterial[]

All of the multi-materials added to this scene

see

http://doc.babylonjs.com/how_to/multi_materials

particleSystems

Find examples in Playground
particleSystems: IParticleSystem[]

All of the particle systems added to this scene

see

http://doc.babylonjs.com/babylon101/particles

proceduralTextures

Find examples in Playground
proceduralTextures: Array<ProceduralTexture>

The list of procedural textures added to the scene

see

http://doc.babylonjs.com/how_to/how_to_use_procedural_textures

rootNodes

Find examples in Playground
rootNodes: Node[]

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

skeletons

Find examples in Playground
skeletons: Skeleton[]

The list of skeletons added to the scene

see

http://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons

sounds

Find examples in Playground
sounds: Nullable<Array<Sound>>

The list of sounds used in the scene.

textures

Find examples in Playground
textures: BaseTexture[]

Textures to keep.

transformNodes

Find examples in Playground
transformNodes: TransformNode[]

All of the tranform nodes added to this scene

see

http://doc.babylonjs.com/how_to/transformnode

Methods

addEffectLayer

Find examples in Playground
  • Adds the given effect layer to this scene

    Parameters

    • newEffectLayer: EffectLayer

      defines the effect layer to add

    Returns void

addLensFlareSystem

Find examples in Playground
  • Adds the given lens flare system to this scene

    Parameters

    Returns void

getGlowLayerByName

Find examples in Playground
  • Return a the first highlight layer of the scene with a given name.

    Parameters

    • name: string

      The name of the highlight layer to look for.

    Returns Nullable<GlowLayer>

    The highlight layer if found otherwise null.

getHighlightLayerByName

Find examples in Playground
  • Return a the first highlight layer of the scene with a given name.

    Parameters

    • name: string

      The name of the highlight layer to look for.

    Returns Nullable<HighlightLayer>

    The highlight layer if found otherwise null.

getLensFlareSystemByID

Find examples in Playground
  • Gets a lens flare system using its id

    Parameters

    • id: string

      defines the id to look for

    Returns Nullable<LensFlareSystem>

    the lens flare system or null if not found

getLensFlareSystemByName

Find examples in Playground
  • Gets a lens flare system using its name

    Parameters

    • name: string

      defines the name to look for

    Returns Nullable<LensFlareSystem>

    the lens flare system or null if not found

removeEffectLayer

Find examples in Playground
  • Removes the given effect layer from this scene.

    Parameters

    • toRemove: EffectLayer

      defines the effect layer to remove

    Returns number

    the index of the removed effect layer

removeLensFlareSystem

Find examples in Playground
  • Removes the given lens flare system from this scene.

    Parameters

    Returns number

    The index of the removed lens flare system

Static AddIndividualParser

Find examples in Playground
  • Adds n individual parser in the list of available ones

    Parameters

    Returns void

Static AddParser

Find examples in Playground
  • Adds a parser in the list of available ones

    Parameters

    • name: string

      Defines the name of the parser

    • parser: BabylonFileParser

      Defines the parser to add

    Returns void

Static GetIndividualParser

Find examples in Playground
  • Gets an individual parser from the list of avaialble ones

    Parameters

    • name: string

      Defines the name of the parser

    Returns Nullable<IndividualBabylonFileParser>

    the requested parser or null

Static GetParser

Find examples in Playground
  • Gets a general parser from the list of avaialble ones

    Parameters

    • name: string

      Defines the name of the parser

    Returns Nullable<BabylonFileParser>

    the requested parser or null

Static Parse

Find examples in Playground
  • Parser json data and populate both a scene and its associated container object

    Parameters

    • jsonData: any

      Defines the data to parse

    • scene: Scene

      Defines the scene to parse the data for

    • container: AssetContainer

      Defines the container attached to the parsing sequence

    • rootUrl: string

      Defines the root url of the data

    Returns void

Generated using TypeDoc