docs.unity.cn
    Show / Hide Table of Contents

    Interface IBrushModifierKeyController

    An interface that represent the controller for brush modifier keys.

    Namespace: UnityEditor.TerrainTools
    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
    Boolean

    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>
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 5, 2023
    Terms of use