class BlockTool : EditorTool

book_4_sparkGenerated
code_blocksInput

Description

The BlockTool class is part of the Editor.MeshEditor namespace and extends the EditorTool class. It provides functionality to create new shapes by dragging out a block in the editor environment.

Members

Static Members

Member NameSummary
ActivateToolActivates the Block Tool using the shortcut Shift+B in the Scene Viewport Widget.

Instance Members

Member NameSummary
OnEnabledCalled when the tool is enabled.
OnDisabledCalled when the tool is disabled.
OnSelectionChangedCalled when the selection changes in the editor.
OnUpdateCalled every frame to update the tool's state.
BuildUIBuilds the user interface for the tool.
OnEditedCalled when a property is edited. Takes a SerializedProperty as a parameter.