Class BaseBrushUIGroup.OnPaintOccurrence
Provides methods for the brush's painting.
Namespace: UnityEditor.TerrainTools
Syntax
[Serializable]
public class OnPaintOccurrence
Constructors
OnPaintOccurrence(Texture, Single, Single, Single, Single, Single)
Initializes and returns an instance of OnPaintOccurrence.
Declaration
public OnPaintOccurrence(Texture brushTexture, float brushSize, float brushStrength, float brushRotation, float uvX, float uvY)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Texture | brushTexture | The brush's texture. |
Single | brushSize | The brush's size. |
Single | brushStrength | The brush's strength. |
Single | brushRotation | The brush's rotation. |
Single | uvX | The cursor's X position within UV space. |
Single | uvY | The cursor's Y position within UV space. |
Fields
brushRotation
The brush rotation.
Declaration
[SerializeField]
public float brushRotation
Field Value
Type | Description |
---|---|
Single |
brushSize
The brush size.
Declaration
[SerializeField]
public float brushSize
Field Value
Type | Description |
---|---|
Single |
brushStrength
The brush strength.
Declaration
[SerializeField]
public float brushStrength
Field Value
Type | Description |
---|---|
Single |
brushTextureAssetPath
The asset file path of the brush texture in use.
Declaration
[SerializeField]
public string brushTextureAssetPath
Field Value
Type | Description |
---|---|
String |
duration
The total duration of painting.
Declaration
[SerializeField]
public float duration
Field Value
Type | Description |
---|---|
Single |
xPos
The cursor's X position within UV space.
Declaration
[SerializeField]
public float xPos
Field Value
Type | Description |
---|---|
Single |
yPos
The cursor's Y position within UV space.
Declaration
[SerializeField]
public float yPos
Field Value
Type | Description |
---|---|
Single |