API

Class HolographicSlateSince

Class used to create a holographic slate 5.0.0

Hierarchy

  • ContentDisplay3D
    • HolographicSlate
Index
defaultDimensions: any = ...

Default dimensions of the slate

fitContentToDimensions: boolean = false

If true, the content will be scaled to fit the dimensions of the slate

minDimensions: any = ...

Minimum dimensions of the slate

name?: string

Defines the control name

onPointerClickObservable: any = ...

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

onPointerDownObservable: any = ...

An event triggered when the pointer taps the control

onPointerEnterObservable: any = ...

An event triggered when pointer enters the control

onPointerMoveObservable: any = ...

An event triggered when the pointer moves over the control

onPointerOutObservable: any = ...

An event triggered when the pointer moves out of the control

onPointerUpObservable: any = ...

An event triggered when pointer is up

origin: any = ...

Origin in local coordinates (top left corner)

parent: Nullable<Container3D>

Gets or sets the parent container

pointerDownAnimation: () => void

Callback used to start pointer down animation

pointerEnterAnimation: () => void

Callback used to start pointer enter animation

pointerOutAnimation: () => void

Callback used to start pointer out animation

pointerUpAnimation: () => void

Callback used to start pointer up animation

titleBarMargin: number = 0.005

Margin between title bar and contentplate

ASSETS_BASE_URL: string = "https://assets.babylonjs.com/core/MRTK/"

Base Url for the assets.

CLOSE_ICON_FILENAME: string = "IconClose.png"

File name for the close icon.

FOLLOW_ICON_FILENAME: string = "IconFollowMe.png"

File name for the close icon.

  • get contentResolution(): number | { height: number; width: number }

    Gets or sets the texture resolution used to render content (512 by default)

    Returns number | { height: number; width: number }

  • set contentResolution(value: number | { height: number; width: number }): void

    Parameters

    • value: number | { height: number; width: number }

    Returns void

  • Link the control as child of the given node

    Parameters

    • node: Nullable<TransformNode>

      defines the node to link to. Use null to unlink the control

    Returns Control3D

    the current control

  • Resets the aspect and pose of the slate so it is right in front of the active camera, facing towards it.

    Parameters

    • resetAspect: boolean = true

      Should the slate's dimensions/aspect ratio be reset as well

    Returns void