Class GUI3DManager
Implements
Properties
on Picked Point Changed Observable
Observable raised when the point picked by the pointer events changed
on Picking Observable
Observable raised when a picking happens
Accessors
control Scaling
-
get controlScaling(): number
Gets the scaling for all UI elements owned by this manager
Returns number
-
set controlScaling(newScale: number): void
Sets the scaling adjustment for all UI elements owned by this manager
Parameters
- newScale: number
Returns void
root Container
-
Gets the root container
Returns Container3D
scene
-
get scene(): Scene
Gets the hosting scene
Returns Scene
use Realistic Scaling
-
get useRealisticScaling(): boolean
Gets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter
Returns boolean
-
set useRealisticScaling(newValue: boolean): void
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 void
utility Layer
-
get utilityLayer(): Nullable<UtilityLayerRenderer>
Gets associated utility layer
Returns Nullable<UtilityLayerRenderer>
Methods
add Control
-
Adds a control to the root child list
Parameters
- control: Control3D
defines the control to add
Returns GUI3DManager
the current manager
- control: Control3D
contains Control
-
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
- control: Control3D
dispose
-
Releases all associated resources
Returns void
remove Control
-
Removes a control from the root child list
Parameters
- control: Control3D
defines the control to remove
Returns GUI3DManager
the current container
- control: Control3D
Class used to manage 3D user interface
See
https://doc.babylonjs.com/features/featuresDeepDive/gui/gui3D