docs.unity3d.com
    目次を表示する/隠す

    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>
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)