MaterialBrush
Description
The tool used to edit the materials.
Accessed by Global.Editor.Tools["MaterialBrush"]
.
Properties
Texture | Texture |
MaterialMesh | Mesh |
int | Size |
OptionButton | LayerMenu |
int | ActiveLayer |
bool | Smooth |
bool | MoveToFront |
GridMenu | textureMenu |
Methods
float | UpdateBrushRadius ( ) |
void | SetMaterial ( Texture texture ) |
void | SetLayer ( int index ) |
void | SetSmooth ( bool value ) |
Property Descriptions
- Texture Texture:
Gets or sets the next material's texture/style.
- MaterialMesh Mesh:
The mesh this tool is editing.
- int Size:
Get or set the size of the brush.
- OptionButton LayerMenu:
The reference to the layer menu in the Material Brush when it is active.
- int ActiveLayer:
The layer the next material will be placed. Read only. Set with SetLayer() instead.
- bool Smooth:
Smooths rough edges in the material. Call SetSmooth() to set instead.
- bool MoveToFront:
When the user next paints, the painted material will get moved to the front of the canvas.
- GridMenu textureMenu:
The menu that selects textures for this tool. DO NOT MODIFY.
Method Descriptions
- float UpdateBrushRadius ( ):
Update the brush cursor to reflect the new size. Automatically called when Size is set. Returns the radius.
- void SetMaterial ( Texture texture ):
Change the material the tool will be editing.