属性
可选
只读
实验性
activeBrushShape
可选
只读
实验性
activeBrushVolume
只读
实验性
brushShapeList
方法
activateBrushTool
- activateBrushTool(): void
实验性
返回 void
beginPainting
- beginPainting(onComplete: (arg0: PaintCompletionState) => void): void
实验性
返回 void
deactivateBrushTool
- deactivateBrushTool(): void
实验性
返回 void
endPainting
- endPainting(cancelled: boolean): void
实验性
返回 void
getBrushShapeOffset
- getBrushShapeOffset(): Vector3
实验性
getSettingsUIElements
- getSettingsUIElements(brushName: string): SettingsUIElement[]
实验性
registerBrushShape
- registerBrushShape(
name: string,
icon: string,
rebuild: () => CompoundBlockVolume,
getSettingsUIElements: () => SettingsUIElement[],
): void 实验性
返回 void
setBrushMask
- setBrushMask(mask: BlockMaskList): void
实验性
返回 void
setBrushShapeOffset
- setBrushShapeOffset(offset: Vector3): void
实验性
返回 void
setBrushShapeVisible
- setBrushShapeVisible(visible: boolean): void
实验性
返回 void
setFlattenHeight
- setFlattenHeight(flattenHeight: number): void
实验性
返回 void
setFlattenRadius
- setFlattenRadius(flattenRadius: number): void
实验性
返回 void
setTerrainStrength
- setTerrainStrength(terrainStrength: number): void
实验性
返回 void
singlePaint
- singlePaint(onComplete: (arg0: PaintCompletionState) => void): void
实验性
返回 void
switchBrushPaintMode
- switchBrushPaintMode(paintMode: PaintMode): void
实验性
返回 void
uiSettingValueChanged
- uiSettingValueChanged(
elementName: string,
newValue: string | number | boolean | Vector3,
): boolean 实验性
参数
- elementName: string
- newValue: string | number | boolean | Vector3
返回 boolean
备注
无法在只读模式下调用此函数,详见 WorldBeforeEvents。