视图模型为 The view model for
VoxelInspector.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
scene |
Scene | 要使用的场景实例。 The scene instance to use. |
成员 Members
readonly scene : Scene
获取场景 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,否则为 false。 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
