TexturePainter.SetBrushSize C# (CSharp) Метод

SetBrushSize() публичный Метод

public SetBrushSize ( float newBrushSize ) : void
newBrushSize float
Результат 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

Пример #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