Class BaseBrushUIGroup.OnPaintOccurrence
Provides methods for the brush's painting.
Inherited Members
Namespace: UnityEditor.TerrainTools
Assembly: Unity.TerrainTools.Editor.dll
Syntax
[Serializable]
public class BaseBrushUIGroup.OnPaintOccurrence
Constructors
OnPaintOccurrence(Texture, float, float, float, float, float)
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 |
---|---|---|
Texture | brushTexture | The brush's texture. |
float | brushSize | The brush's size. |
float | brushStrength | The brush's strength. |
float | brushRotation | The brush's rotation. |
float | uvX | The cursor's X position within UV space. |
float | uvY | The cursor's Y position within UV space. |
Fields
brushRotation
The brush rotation.
Declaration
[SerializeField]
public float brushRotation
Field Value
Type | Description |
---|---|
float |
brushSize
The brush size.
Declaration
[SerializeField]
public float brushSize
Field Value
Type | Description |
---|---|
float |
brushStrength
The brush strength.
Declaration
[SerializeField]
public float brushStrength
Field Value
Type | Description |
---|---|
float |
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 |
---|---|
float |
xPos
The cursor's X position within UV space.
Declaration
[SerializeField]
public float xPos
Field Value
Type | Description |
---|---|
float |
yPos
The cursor's Y position within UV space.
Declaration
[SerializeField]
public float yPos
Field Value
Type | Description |
---|---|
float |