docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IBrushModifierKeyController

    An interface that represent the controller for brush modifier keys.

    Namespace: UnityEditor.TerrainTools
    Assembly: Unity.TerrainTools.Editor.dll
    Syntax
    public interface IBrushModifierKeyController

    Methods

    ModifierActive(BrushModifierKey)

    Checks if the modifier key is active.

    Declaration
    bool ModifierActive(BrushModifierKey k)
    Parameters
    Type Name Description
    BrushModifierKey k

    The modifier key to check.

    Returns
    Type Description
    bool

    Returns true when the key is active.

    OnEnterToolMode()

    Defines data when the tool is selected.

    Declaration
    void OnEnterToolMode()

    OnExitToolMode()

    Defines data when the tool is deselected.

    Declaration
    void OnExitToolMode()

    Events

    OnModifierPressed

    Calls the methods in its invocation list when the modifier key is pressed.

    Declaration
    event Action<BrushModifierKey> OnModifierPressed
    Event Type
    Type Description
    Action<BrushModifierKey>

    OnModifierReleased

    Calls the methods in its invocation list when the modifier key is released.

    Declaration
    event Action<BrushModifierKey> OnModifierReleased
    Event Type
    Type Description
    Action<BrushModifierKey>
    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)