Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GUI3DManager

Class used to manage 3D user interface

see

https://doc.babylonjs.com/how_to/gui3d

Hierarchy

  • GUI3DManager

Implements

Index

Constructors

constructor

  • Creates a new GUI3DManager

    Parameters

    Returns GUI3DManager

Properties

onPickedPointChangedObservableSearch playground for onPickedPointChangedObservable

onPickedPointChangedObservable: Observable<Nullable<Vector3>>

BABYLON.Observable raised when the point picked by the pointer events changed

onPickingObservableSearch playground for onPickingObservable

onPickingObservable: Observable<Nullable<AbstractMesh>>

BABYLON.Observable raised when a picking happens

Accessors

controlScaling

  • get controlScaling(): number
  • set controlScaling(newScale: number): any
  • Gets the scaling for all UI elements owned by this manager

    Returns number

  • Sets the scaling adjustment for all UI elements owned by this manager

    Parameters

    • newScale: number

    Returns any

rootContainer

  • Gets the root container

    Returns Container3D

scene

  • Gets the hosting scene

    Returns Scene

useRealisticScaling

  • get useRealisticScaling(): boolean
  • set useRealisticScaling(newValue: boolean): any
  • Gets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter

    Returns boolean

  • Sets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter

    Parameters

    • newValue: boolean

    Returns any

utilityLayer

Methods

addControlSearch playground for addControl

  • Adds a control to the root child list

    Parameters

    • control: Control3D

      defines the control to add

    Returns GUI3DManager

    the current manager

containsControlSearch playground for containsControl

  • containsControl(control: Control3D): boolean
  • Gets a boolean indicating if the given control is in the root child list

    Parameters

    • control: Control3D

      defines the control to check

    Returns boolean

    true if the control is in the root child list

disposeSearch playground for dispose

  • dispose(): void
  • Releases all associated resources

    Returns void

removeControlSearch playground for removeControl

  • Removes a control from the root child list

    Parameters

    • control: Control3D

      defines the control to remove

    Returns GUI3DManager

    the current container

Legend

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