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

actionManagers: ActionManager[]

ActionManagers available on the scene.

animationGroups

animationGroups: AnimationGroup[]

All of the animation groups added to this scene

see

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

animations

animations: Animation[]

Gets a list of Animations associated with the scene

cameras

cameras: Camera[]

All of the cameras added to this scene

see

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

geometries

geometries: Geometry[]

The list of geometries used in the scene.

lights

lights: Light[]

All of the lights added to this scene

see

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

materials

materials: Material[]

All of the materials added to this scene

see

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

meshes

meshes: AbstractMesh[]

All of the (abstract) meshes added to this scene

morphTargetManagers

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

multiMaterials: MultiMaterial[]

All of the multi-materials added to this scene

see

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

particleSystems

particleSystems: IParticleSystem[]

All of the particle systems added to this scene

see

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

skeletons

skeletons: Skeleton[]

The list of skeletons added to the scene

see

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

sounds

sounds: Sound[]

Sounds to keep.

textures

textures: BaseTexture[]

Textures to keep.

transformNodes

transformNodes: TransformNode[]

All of the tranform nodes added to this scene

see

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

Static effectLayers

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

Static layers

layers: Array<Layer>

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

Static lensFlareSystems

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

Methods

Static AddIndividualParser

  • Adds n individual parser in the list of available ones

    Parameters

    Returns void

Static AddParser

  • 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

  • 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

  • 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

  • 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

Static addEffectLayer

  • Adds the given effect layer to this scene

    Parameters

    • newEffectLayer: EffectLayer

      defines the effect layer to add

    Returns void

Static addLensFlareSystem

  • Adds the given lens flare system to this scene

    Parameters

    Returns void

Static getGlowLayerByName

  • 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.

Static getHighlightLayerByName

  • 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.

Static getLensFlareSystemByID

  • 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

Static getLensFlareSystemByName

  • 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

Static removeEffectLayer

  • 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

Static removeLensFlareSystem

  • Removes the given lens flare system from this scene.

    Parameters

    Returns number

    The index of the removed lens flare system

Generated using TypeDoc