VoxelInspectorViewModel

open external class VoxelInspectorViewModel(val scene: Scene)(source)

The view model for VoxelInspector.

See also

Constructors

Link copied to clipboard
constructor(scene: Scene)

Properties

Link copied to clipboard
external val scene: Scene

The scene instance to use.

Link copied to clipboard

Gets or sets the primitive of the view model.

Functions

Link copied to clipboard
external fun compileShader()

Compiles the shader in the shader editor.

Link copied to clipboard
external fun destroy()

Destroys the widget. Should be called if permanently removing the widget from layout.

Link copied to clipboard
external fun isDestroyed(): Boolean
Link copied to clipboard
external fun shaderEditorKeyPress()

Handles key press events on the shader editor.

Link copied to clipboard
external fun toggleBounds()

Toggles the visibility of the bounds section

Link copied to clipboard
external fun toggleClipping()

Toggles the visibility of the clipping section

Link copied to clipboard
external fun toggleDisplay()

Toggles the visibility of the display section

Link copied to clipboard
external fun toggleInspector()

Toggles the inspector visibility

Link copied to clipboard
external fun toggleShader()

Toggles the visibility of the shader section

Link copied to clipboard
external fun toggleTransform()

Toggles the visibility of the transform section