English | 简体中文

VoxelInspectorViewModel

new Cesium.VoxelInspectorViewModel(scene)

The view model for VoxelInspector.
Name Type Description
scene Scene The scene instance to use.

Members

Gets the scene
Gets or sets the primitive of the view model.

Methods

Compiles the shader in the shader editor.
Destroys the widget. Should be called if permanently removing the widget from layout.
Returns:
true if the object has been destroyed, false otherwise.
Handles key press events on the shader editor.
Toggles the visibility of the bounds section
Toggles the visibility of the clipping section
Toggles the visibility of the display section
Toggles the inspector visibility
Toggles the visibility of the shader section
Toggles the visibility of the transform section
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.