Class TouchHolographicMenu
Hierarchy
Index
Constructors
Properties
- margin
- name
- on
Pointer Click Observable - on
Pointer Down Observable - on
Pointer Enter Observable - on
Pointer Move Observable - on
Pointer Out Observable - on
Pointer Up Observable - parent
- pointer
Down Animation - pointer
Enter Animation - pointer
Out Animation - pointer
Up Animation - FACEFORWARDREVERSED_
ORIENTATION - FACEFORWARD_
ORIENTATION - FACEORIGINREVERSED_
ORIENTATION - FACEORIGIN_
ORIENTATION - UNSET_
ORIENTATION
Accessors
Methods
Constructors
constructor
Creates a holographic menu GUI 3D control
Parameters
Optional name: string
name of the menu
Returns TouchHolographicMenu
Properties
marginSearch playground for margin
Gets or sets the distance between elements
Optional nameSearch playground for name
Defines the control name
on Pointer Click ObservableSearch playground for onPointerClickObservable
An event triggered when a control is clicked on (with a mouse)
on Pointer Down ObservableSearch playground for onPointerDownObservable
An event triggered when the pointer taps the control
on Pointer Enter ObservableSearch playground for onPointerEnterObservable
An event triggered when pointer enters the control
on Pointer Move ObservableSearch playground for onPointerMoveObservable
An event triggered when the pointer moves over the control
on Pointer Out ObservableSearch playground for onPointerOutObservable
An event triggered when the pointer moves out of the control
on Pointer Up ObservableSearch playground for onPointerUpObservable
An event triggered when pointer is up
parentSearch playground for parent
Gets or sets the parent container
pointer Down AnimationSearch playground for pointerDownAnimation
Callback used to start pointer down animation
Type declaration
Callback used to start pointer down animation
Returns void
pointer Enter AnimationSearch playground for pointerEnterAnimation
Callback used to start pointer enter animation
Type declaration
Callback used to start pointer enter animation
Returns void
pointer Out AnimationSearch playground for pointerOutAnimation
Callback used to start pointer out animation
Type declaration
Callback used to start pointer out animation
Returns void
pointer Up AnimationSearch playground for pointerUpAnimation
Callback used to start pointer up animation
Type declaration
Callback used to start pointer up animation
Returns void
Static Readonly FACEFORWARDREVERSED_ ORIENTATIONSearch playground for FACEFORWARDREVERSED_ORIENTATION
Control will rotate to look at negative z axis (0, 0, -1)
Static Readonly FACEFORWARD_ ORIENTATIONSearch playground for FACEFORWARD_ORIENTATION
Control will rotate to look at z axis (0, 0, 1)
Static Readonly FACEORIGINREVERSED_ ORIENTATIONSearch playground for FACEORIGINREVERSED_ORIENTATION
Control will rotate to make it look back at sphere central axis
Static Readonly FACEORIGIN_ ORIENTATIONSearch playground for FACEORIGIN_ORIENTATION
Control will rotate to make it look at sphere central axis
Static Readonly UNSET_ ORIENTATIONSearch playground for UNSET_ORIENTATION
Control rotation will remain unchanged
Accessors
back Plate Margin
Gets or sets the margin size of the backplate in button size units. Setting this to 1, will make the backPlate margin the size of 1 button
Returns number
Gets or sets the margin size of the backplate in button size units. Setting this to 1, will make the backPlate margin the size of 1 button
Parameters
value: number
Returns void
behaviors
block Layout
Gets or sets a boolean indicating if the layout must be blocked (default is false). This is helpful to optimize layout operation when adding multiple children in a row
Returns boolean
Gets or sets a boolean indicating if the layout must be blocked (default is false). This is helpful to optimize layout operation when adding multiple children in a row
Parameters
value: boolean
Returns void
children
Gets the list of child controls
Returns Control3D[]
columns
Gets or sets the number of columns requested (10 by default). The panel will automatically compute the number of rows based on number of child controls.
Returns number
Gets or sets the number of columns requested (10 by default). The panel will automatically compute the number of rows based on number of child controls.
Parameters
value: number
Returns void
is Visible
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
mesh
Gets the mesh used to render this control
Returns Nullable<AbstractMesh>
node
Gets the transform node used by this control
Returns Nullable<TransformNode>
orientation
Gets or sets the orientation to apply to all controls (BABYLON.Container3D.FaceOriginReversedOrientation by default)
Value Type Description 0 UNSET_ORIENTATION Control rotation will remain unchanged 1 FACEORIGIN_ORIENTATION Control will rotate to make it look at sphere central axis 2 FACEORIGINREVERSED_ORIENTATION Control will rotate to make it look back at sphere central axis 3 FACEFORWARD_ORIENTATION Control will rotate to look at z axis (0, 0, 1) 4 FACEFORWARDREVERSED_ORIENTATION Control will rotate to look at negative z axis (0, 0, -1) Returns number
Gets or sets the orientation to apply to all controls (BABYLON.Container3D.FaceOriginReversedOrientation by default)
Value Type Description 0 UNSET_ORIENTATION Control rotation will remain unchanged 1 FACEORIGIN_ORIENTATION Control will rotate to make it look at sphere central axis 2 FACEORIGINREVERSED_ORIENTATION Control will rotate to make it look back at sphere central axis 3 FACEFORWARD_ORIENTATION Control will rotate to look at z axis (0, 0, 1) 4 FACEFORWARDREVERSED_ORIENTATION Control will rotate to look at negative z axis (0, 0, -1) Parameters
value: number
Returns void
position
rows
Gets or sets a the number of rows requested. The panel will automatically compute the number of columns based on number of child controls.
Returns number
Gets or sets a the number of rows requested. The panel will automatically compute the number of columns based on number of child controls.
Parameters
value: number
Returns void
scaling
type Name
Gets a string representing the class name
Returns string
Methods
_prepare NodeSearch playground for _prepareNode
Parameters
scene: Scene
Returns void
add BehaviorSearch playground for addBehavior
add ButtonSearch playground for addButton
Adds a button to the menu. Please note that the back material of the button will be set to transparent as it is attached to the menu.
Parameters
button: TouchHolographicButton
Button to add
Returns TouchHolographicMenu
This menu
add ControlSearch playground for addControl
This method should not be used directly. It is inherited from
Container3D
. Please useaddButton
instead.Parameters
_control: Control3D
Returns Container3D
contains ControlSearch playground for containsControl
Gets a boolean indicating if the given control is in the children of this control
Parameters
control: Control3D
defines the control to check
Returns boolean
true if the control is in the child list
disposeSearch playground for dispose
Disposes the menu
Returns void
get Behavior By NameSearch playground for getBehaviorByName
get Class NameSearch playground for getClassName
Get the current class name of the control.
Returns string
current class name
link To Transform NodeSearch playground for linkToTransformNode
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
remove BehaviorSearch playground for removeBehavior
remove ControlSearch playground for removeControl
Removes a control from the children of this control
Parameters
control: Control3D
defines the control to remove
Returns Container3D
the current container
update LayoutSearch playground for updateLayout
Force the container to update the layout. Please note that it will not take blockLayout property in account
Returns Container3D
the current container
Simple menu that can contain holographic buttons