docs.unity3d.com
    Show / Hide Table of Contents

    Class BaseBrushUIGroup.OnPaintOccurrence

    Provides methods for the brush's painting.

    Inheritance
    Object
    BaseBrushUIGroup.OnPaintOccurrence
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    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
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Friday, November 3, 2023