TexturePainter.SetBrushSize C# (CSharp) Method

SetBrushSize() public method

public SetBrushSize ( float newBrushSize ) : void
newBrushSize float
return void
	public void SetBrushSize(float newBrushSize){ //Sets the size of the cursor brush or decal
		brushSize = newBrushSize;
		brushCursor.transform.localScale = Vector3.one * brushSize;
	}

Usage Example

Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     sliderBrushSize = this.transform.Find("SliderBrushSize").GetComponent <Slider>();
     sliderBrushSize.onValueChanged.AddListener(
         (value) => { painter.SetBrushSize(value); }
         );
 }
All Usage Examples Of TexturePainter::SetBrushSize