Class HolographicButton
Hierarchy
-
Button3D
- HolographicButton
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new button
Parameters
-
Optional name: string
defines the control name
-
Optional shareMaterials: boolean
Returns HolographicButton
-
Properties
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 move over the control
on Pointer Out ObservableSearch playground for onPointerOutObservable
An event triggered when the pointer move out of the control
on Pointer UpObservableSearch 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
-
-
Returns void
-
pointer Enter AnimationSearch playground for pointerEnterAnimation
Callback used to start pointer enter animation
Type declaration
-
-
Returns void
-
pointer Out AnimationSearch playground for pointerOutAnimation
Callback used to start pointer out animation
Type declaration
-
-
Returns void
-
pointer UpAnimationSearch playground for pointerUpAnimation
Callback used to start pointer up animation
Type declaration
-
-
Returns void
-
Accessors
back Material
-
Gets the back material used by this button
Returns FluentMaterial
behaviors
content
content Resolution
content Scale Ratio
-
Gets or sets the texture scale ratio used to render content (2 by default)
Returns number
-
Gets or sets the texture scale ratio used to render content (2 by default)
Parameters
-
value: number
Returns any
-
front Material
-
Gets the front material used by this button
Returns FluentMaterial
image Url
-
Gets or sets the image url for the button
Returns string
-
Gets or sets the image url for the button
Parameters
-
value: string
Returns any
-
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 any
-
mesh
-
Gets the mesh used to render this control
Returns Nullable<AbstractMesh>
node
-
Gets the transform node used by this control
Returns Nullable<TransformNode>
plate Material
-
Gets the plate material used by this button
Returns StandardMaterial
position
rendering Group Id
-
Rendering ground id of all the mesh in the button
Returns number
-
Rendering ground id of all the mesh in the button
Parameters
-
id: number
Returns any
-
scaling
share Materials
-
Gets a boolean indicating if this button shares its material with other HolographicButtons
Returns boolean
text
-
Gets or sets text for the button
Returns string
-
Gets or sets text for the button
Parameters
-
value: string
Returns any
-
tooltip Text
-
Text to be displayed on the tooltip shown when hovering on the button. When set to null tooltip is disabled. (Default: null)
Returns Nullable<string>
-
Text to be displayed on the tooltip shown when hovering on the button. When set to null tooltip is disabled. (Default: null)
Parameters
-
text: Nullable<string>
Returns any
-
type Name
-
Gets a string representing the class name
Returns string
Methods
add BehaviorSearch playground for addBehavior
disposeSearch playground for dispose
-
Releases all associated resources
Returns void
get Behavior ByNameSearch playground for getBehaviorByName
get Class NameSearch playground for getClassName
-
Get the current class name of the control.
Returns string
current class name
link ToTransform 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
-
Class used to create a holographic button in 3D