Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnvironmentHelper

The Environment helper class can be used to add a fully featured none expensive background to your scene. It includes by default a skybox and a ground relying on the BackgroundMaterial. It also helps with the default setup of your imageProcessing configuration.

Hierarchy

  • EnvironmentHelper

Index

Constructors

constructor

  • constructor

    Parameters

    Returns EnvironmentHelper

Properties

onErrorObservableSearch playground for onErrorObservable

onErrorObservable: Observable<{ exception?: any; message?: string }>

This observable will be notified with any error during the creation of the environment, mainly texture creation errors.

Accessors

ground

  • Gets the ground mesh created by the helper.

    Returns Nullable<Mesh>

groundMaterial

  • Gets the ground material created by the helper.

    Returns Nullable<BackgroundMaterial>

groundMirror

  • Gets the ground mirror created by the helper.

    Returns Nullable<MirrorTexture>

groundMirrorRenderList

  • Gets the ground mirror render list to helps pushing the meshes you wish in the ground reflection.

    Returns Nullable<AbstractMesh[]>

groundTexture

  • Gets the ground texture created by the helper.

    Returns Nullable<BaseTexture>

rootMesh

  • get rootMesh(): Mesh
  • Gets the root mesh created by the helper.

    Returns Mesh

skybox

  • Gets the skybox created by the helper.

    Returns Nullable<Mesh>

skyboxMaterial

  • Gets the skybox material created by the helper.

    Returns Nullable<BackgroundMaterial>

skyboxTexture

  • Gets the skybox texture created by the helper.

    Returns Nullable<BaseTexture>

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Dispose all the elements created by the Helper.

    Returns void

setMainColorSearch playground for setMainColor

  • setMainColor(color: Color3): void
  • Sets the primary color of all the available elements.

    Parameters

    • color: Color3

      the main color to affect to the ground and the background

    Returns void

updateOptionsSearch playground for updateOptions

  • Updates the background according to the new options

    Parameters

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method