Class BaseBrushUIGroup | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class BaseBrushUIGroup

    Inheritance
    Object
    BaseBrushUIGroup
    DefaultBrushUIGroup
    MeshBrushUIGroup
    WindBrushUIGroup
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public abstract class BaseBrushUIGroup : IBrushUIGroup, IBrushEventHandler, IBrushTerrainCache

    Constructors

    BaseBrushUIGroup(String, Func<TerrainToolsAnalytics.IBrushParameter[]>)

    Declaration
    protected BaseBrushUIGroup(string name, Func<TerrainToolsAnalytics.IBrushParameter[]> analyticsCall = null)
    Parameters
    Type Name Description
    String name
    Func<TerrainToolsAnalytics.IBrushParameter[]> analyticsCall

    Fields

    isRecording

    Declaration
    public static bool isRecording
    Field Value
    Type Description
    Boolean

    Properties

    allowPaint

    Declaration
    public bool allowPaint { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushUIGroup.allowPaint

    brushMaskFilterStack

    Declaration
    public FilterStack brushMaskFilterStack { get; }
    Property Value
    Type Description
    FilterStack
    Implements
    IBrushUIGroup.brushMaskFilterStack

    brushMaskFilterStackView

    Declaration
    public FilterStackView brushMaskFilterStackView { get; }
    Property Value
    Type Description
    FilterStackView
    Implements
    IBrushUIGroup.brushMaskFilterStackView

    brushName

    Declaration
    public string brushName { get; }
    Property Value
    Type Description
    String

    brushRotation

    Declaration
    public float brushRotation { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IBrushUIGroup.brushRotation

    brushScatter

    Declaration
    public float brushScatter { get; }
    Property Value
    Type Description
    Single

    brushSize

    Declaration
    public float brushSize { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IBrushUIGroup.brushSize

    brushSpacing

    Declaration
    public float brushSpacing { get; }
    Property Value
    Type Description
    Single
    Implements
    IBrushUIGroup.brushSpacing

    brushStrength

    Declaration
    public float brushStrength { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IBrushUIGroup.brushStrength

    canUpdateTerrainUnderCursor

    Declaration
    public bool canUpdateTerrainUnderCursor { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushTerrainCache.canUpdateTerrainUnderCursor

    InvertStrength

    Declaration
    public bool InvertStrength { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushUIGroup.InvertStrength

    isInUse

    Declaration
    public bool isInUse { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushUIGroup.isInUse

    isRaycastHitUnderCursorValid

    Declaration
    public bool isRaycastHitUnderCursorValid { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushUIGroup.isRaycastHitUnderCursorValid
    IBrushTerrainCache.isRaycastHitUnderCursorValid

    raycastHitUnderCursor

    Declaration
    public RaycastHit raycastHitUnderCursor { get; }
    Property Value
    Type Description
    RaycastHit
    Implements
    IBrushUIGroup.raycastHitUnderCursor
    IBrushTerrainCache.raycastHitUnderCursor

    terrainUnderCursor

    Declaration
    public Terrain terrainUnderCursor { get; }
    Property Value
    Type Description
    Terrain
    Implements
    IBrushUIGroup.terrainUnderCursor
    IBrushTerrainCache.terrainUnderCursor

    validationMessage

    Declaration
    public virtual string validationMessage { get; set; }
    Property Value
    Type Description
    String
    Implements
    IBrushUIGroup.validationMessage

    Methods

    AddController<TController>(TController)

    Declaration
    protected TController AddController<TController>(TController newController)
        where TController : IBrushController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddModifierKeyController<TController>(TController)

    Declaration
    protected TController AddModifierKeyController<TController>(TController newController)
        where TController : IBrushModifierKeyController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddRotationController<TController>(TController)

    Declaration
    protected TController AddRotationController<TController>(TController newController)
        where TController : IBrushRotationController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddScatterController<TController>(TController)

    Declaration
    protected TController AddScatterController<TController>(TController newController)
        where TController : IBrushScatterController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddSizeController<TController>(TController)

    Declaration
    protected TController AddSizeController<TController>(TController newController)
        where TController : IBrushSizeController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddSmoothingController<TController>(TController)

    Declaration
    protected TController AddSmoothingController<TController>(TController newController)
        where TController : IBrushSmoothController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddSpacingController<TController>(TController)

    Declaration
    protected TController AddSpacingController<TController>(TController newController)
        where TController : IBrushSpacingController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AddStrengthController<TController>(TController)

    Declaration
    protected TController AddStrengthController<TController>(TController newController)
        where TController : IBrushStrengthController
    Parameters
    Type Name Description
    TController newController
    Returns
    Type Description
    TController
    Type Parameters
    Name Description
    TController

    AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)

    Declaration
    public virtual void AppendBrushInfo(Terrain terrain, IOnSceneGUI editContext, StringBuilder builder)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    StringBuilder builder
    Implements
    IBrushUIGroup.AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)

    ConsumeEvents(Terrain, IOnSceneGUI)

    Declaration
    public void ConsumeEvents(Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    Implements
    IBrushEventHandler.ConsumeEvents(Terrain, IOnSceneGUI)

    GetBrushMask(RenderTexture, RenderTexture)

    Declaration
    public void GetBrushMask(RenderTexture sourceRenderTexture, RenderTexture destinationRenderTexture)
    Parameters
    Type Name Description
    RenderTexture sourceRenderTexture
    RenderTexture destinationRenderTexture
    Implements
    IBrushUIGroup.GetBrushMask(RenderTexture, RenderTexture)

    GetBrushMask(Terrain, RenderTexture, RenderTexture)

    Declaration
    public void GetBrushMask(Terrain terrain, RenderTexture sourceRenderTexture, RenderTexture destinationRenderTexture)
    Parameters
    Type Name Description
    Terrain terrain
    RenderTexture sourceRenderTexture
    RenderTexture destinationRenderTexture
    Implements
    IBrushUIGroup.GetBrushMask(Terrain, RenderTexture, RenderTexture)

    GetBrushMask(Terrain, RenderTexture, RenderTexture, Vector3, Single, Single)

    Declaration
    public void GetBrushMask(Terrain terrain, RenderTexture sourceRenderTexture, RenderTexture destinationRenderTexture, Vector3 position, float scale, float rotation)
    Parameters
    Type Name Description
    Terrain terrain
    RenderTexture sourceRenderTexture
    RenderTexture destinationRenderTexture
    Vector3 position
    Single scale
    Single rotation
    Implements
    IBrushUIGroup.GetBrushMask(Terrain, RenderTexture, RenderTexture, Vector3, Single, Single)

    LockTerrainUnderCursor(Boolean)

    Declaration
    public void LockTerrainUnderCursor(bool cursorVisible)
    Parameters
    Type Name Description
    Boolean cursorVisible
    Implements
    IBrushTerrainCache.LockTerrainUnderCursor(Boolean)

    ModifierActive(BrushModifierKey)

    Declaration
    public bool ModifierActive(BrushModifierKey k)
    Parameters
    Type Name Description
    BrushModifierKey k
    Returns
    Type Description
    Boolean
    Implements
    IBrushUIGroup.ModifierActive(BrushModifierKey)

    OnEnterToolMode()

    Declaration
    public virtual void OnEnterToolMode()
    Implements
    IBrushUIGroup.OnEnterToolMode()

    OnExitToolMode()

    Declaration
    public virtual void OnExitToolMode()
    Implements
    IBrushUIGroup.OnExitToolMode()

    OnInspectorGUI(Terrain, IOnInspectorGUI)

    Declaration
    public virtual void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnInspectorGUI editContext
    Implements
    IBrushUIGroup.OnInspectorGUI(Terrain, IOnInspectorGUI)

    OnPaint(Terrain, IOnPaint)

    Declaration
    public virtual void OnPaint(Terrain terrain, IOnPaint editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnPaint editContext
    Implements
    IBrushUIGroup.OnPaint(Terrain, IOnPaint)

    OnSceneGUI(Terrain, IOnSceneGUI)

    Declaration
    public virtual void OnSceneGUI(Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    Implements
    IBrushUIGroup.OnSceneGUI(Terrain, IOnSceneGUI)

    OnSceneGUI2D(Terrain, IOnSceneGUI)

    Declaration
    public virtual void OnSceneGUI2D(Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    Implements
    IBrushUIGroup.OnSceneGUI2D(Terrain, IOnSceneGUI)

    RegisterEvent(Event)

    Declaration
    public void RegisterEvent(Event newEvent)
    Parameters
    Type Name Description
    Event newEvent
    Implements
    IBrushEventHandler.RegisterEvent(Event)

    RemoveAllControllers()

    Declaration
    protected void RemoveAllControllers()

    RemoveController<TController>(TController)

    Declaration
    protected void RemoveController<TController>(TController controller)
        where TController : IBrushController
    Parameters
    Type Name Description
    TController controller
    Type Parameters
    Name Description
    TController

    RequestRepaint()

    Declaration
    public void RequestRepaint()
    Implements
    IBrushEventHandler.RequestRepaint()

    ScatterBrushStamp(ref Terrain, ref Vector2)

    Declaration
    public bool ScatterBrushStamp(ref Terrain terrain, ref Vector2 uv)
    Parameters
    Type Name Description
    Terrain terrain
    Vector2 uv
    Returns
    Type Description
    Boolean
    Implements
    IBrushUIGroup.ScatterBrushStamp(ref Terrain, ref Vector2)

    UnlockTerrainUnderCursor()

    Declaration
    public void UnlockTerrainUnderCursor()
    Implements
    IBrushTerrainCache.UnlockTerrainUnderCursor()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023