docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BaseBrushUIGroup.OnPaintOccurrence

    Provides methods for the brush's painting.

    Inheritance
    object
    BaseBrushUIGroup.OnPaintOccurrence
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)