Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to create a slider in 3D

Hierarchy

Index

Constructors

  • new Slider3D(name?: string, sliderBackplateVisible?: boolean): Slider3D
  • Creates a new slider

    Parameters

    • Optional name: string

      defines the control name

    • Optional sliderBackplateVisible: boolean

      defines if the control has a backplate, default is false

    Returns Slider3D

Properties

name?: string

Defines the control name

onPointerClickObservable: Observable<Vector3WithInfo>

An event triggered when a control is clicked on (with a mouse)

onPointerDownObservable: Observable<Vector3WithInfo>

An event triggered when the pointer taps the control

onPointerEnterObservable: Observable<Control3D>

An event triggered when pointer enters the control

onPointerMoveObservable: Observable<Vector3>

An event triggered when the pointer moves over the control

onPointerOutObservable: Observable<Control3D>

An event triggered when the pointer moves out of the control

onPointerUpObservable: Observable<Vector3WithInfo>

An event triggered when pointer is up

onValueChangedObservable: Observable<number>

BABYLON.Observable raised when the sldier value changes

Gets or sets the parent container

pointerDownAnimation: () => void

Type declaration

    • (): void
    • Callback used to start pointer down animation

      Returns void

pointerEnterAnimation: () => void

Type declaration

    • (): void
    • Callback used to start pointer enter animation

      Returns void

pointerOutAnimation: () => void

Type declaration

    • (): void
    • Callback used to start pointer out animation

      Returns void

pointerUpAnimation: () => void

Type declaration

    • (): void
    • Callback used to start pointer up animation

      Returns void

MODEL_BASE_URL: string

Base Url for the models.

MODEL_FILENAME: string

File name for the 8x4 model.

Accessors

  • get isVisible(): boolean
  • set isVisible(value: boolean): void
  • Gets or sets a boolean indicating if the control is visible

    Returns boolean

  • Gets or sets a boolean indicating if the control is visible

    Parameters

    • value: boolean

    Returns void

  • get maximum(): number
  • set maximum(value: number): void
  • Gets or sets maximum value

    Returns number

  • Gets or sets maximum value

    Parameters

    • value: number

    Returns void

  • Gets the mesh used to render this control

    Returns Nullable<AbstractMesh>

  • get minimum(): number
  • set minimum(value: number): void
  • Gets or sets minimum value

    Returns number

  • Gets or sets minimum value

    Parameters

    • value: number

    Returns void

  • Gets the transform node used by this control

    Returns Nullable<TransformNode>

  • Gets or sets the control position in world space

    Returns Vector3

  • Gets or sets the control position in world space

    Parameters

    Returns void

  • Gets or sets the control scaling in world space

    Returns Vector3

  • Gets or sets the control scaling in world space

    Parameters

    Returns void

  • Gets the slider backplate material used by this control

    Returns MRDLBackplateMaterial

  • Gets the slider bar material used by this control

    Returns MRDLSliderBarMaterial

  • Gets the slider thumb material used by this control

    Returns MRDLSliderThumbMaterial

  • get step(): number
  • set step(value: number): void
  • Gets or sets step value

    Returns number

  • Gets or sets step value

    Parameters

    • value: number

    Returns void

  • get typeName(): string
  • Gets a string representing the class name

    Returns string

  • get value(): number
  • set value(value: number): void
  • Gets or sets current value

    Returns number

  • Gets or sets current value

    Parameters

    • value: number

    Returns void

Methods

  • _prepareNode(scene: Scene): void
  • dispose(): void
  • Releases all associated resources

    Returns void

  • getClassName(): string
  • Get the current class name of the control.

    Returns string

    current class name

Legend

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

Settings

Theme