Interface ICameraGizmo
Hierarchy
- IGizmo
- ICameraGizmo
Implemented by
Index
Properties
_root MeshSearch playground for _rootMesh
The root mesh of the gizmo
attached MeshSearch playground for attachedMesh
Mesh that the gizmo will be attached to. (eg. on a drag gizmo the mesh that will be dragged)
- When set, interactions will be enabled
attached NodeSearch playground for attachedNode
Node that the gizmo will be attached to. (eg. on a drag gizmo the mesh, bone or NodeTransform that will be dragged)
- When set, interactions will be enabled
cameraSearch playground for camera
The camera that the gizmo is attached to
custom Rotation QuaternionSearch playground for customRotationQuaternion
posture that the gizmo will be display When set null, default value will be used (Quaternion(0, 0, 0, 1))
display FrustumSearch playground for displayFrustum
A boolean indicating if frustum lines must be rendered
gizmo LayerSearch playground for gizmoLayer
The utility layer the gizmo will be added to
Readonly is HoveredSearch playground for isHovered
True when the mouse pointer is hovered a gizmo mesh
Readonly materialSearch playground for material
The material used to render the camera gizmo
on Clicked ObservableSearch playground for onClickedObservable
Event that fires each time the gizmo is clicked
scale RatioSearch playground for scaleRatio
Ratio for the scale of the gizmo
update Gizmo Position To Match Attached MeshSearch playground for updateGizmoPositionToMatchAttachedMesh
If set the gizmo's position will be updated to match the attached mesh each frame (Default: true)
update Gizmo Rotation To Match Attached MeshSearch playground for updateGizmoRotationToMatchAttachedMesh
If set the gizmo's rotation will be updated to match the attached mesh each frame (Default: true)
update ScaleSearch playground for updateScale
When set, the gizmo will always appear the same size no matter where the camera is (default: true)
Methods
disposeSearch playground for dispose
Releases all held resources
Returns void
set Custom MeshSearch playground for setCustomMesh
Disposes and replaces the current meshes in the gizmo with the specified mesh
Parameters
mesh: Mesh
Returns void
Interface for camera gizmo