docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InputParameterEditor

    A custom UI for editing parameter values on a InputProcessor, InputBindingComposite, or IInputInteraction.

    Inheritance
    object
    InputParameterEditor
    InputParameterEditor<TObject>
    Namespace: UnityEngine.InputSystem.Editor
    Assembly: Unity.InputSystem.dll
    Syntax
    public abstract class InputParameterEditor
    Remarks

    When implementing a custom parameter editor, use InputParameterEditor<TObject> instead.

    Properties

    target

    The InputProcessor, InputBindingComposite, or IInputInteraction being edited.

    Declaration
    public object target { get; }
    Property Value
    Type Description
    object
    See Also
    GetParameterValue(InputAction, string, InputBinding)
    ApplyParameterOverride(InputActionMap, string, PrimitiveValue, InputBinding)

    Methods

    OnDrawVisualElements(VisualElement, Action)

    Add visual elements for this parameter editor to a root VisualElement.

    Declaration
    public abstract void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
    Parameters
    Type Name Description
    VisualElement root

    The VisualElement that parameter editor elements should be added to.

    Action onChangedCallback

    A callback that will be called when any of the parameter editors changes value.

    See Also
    GetParameterValue(InputAction, string, InputBinding)
    ApplyParameterOverride(InputActionMap, string, PrimitiveValue, InputBinding)

    OnGUI()

    Callback for implementing a custom UI.

    Declaration
    public abstract void OnGUI()
    See Also
    GetParameterValue(InputAction, string, InputBinding)
    ApplyParameterOverride(InputActionMap, string, PrimitiveValue, InputBinding)

    See Also

    GetParameterValue(InputAction, string, InputBinding)
    ApplyParameterOverride(InputActionMap, string, PrimitiveValue, InputBinding)
    In This Article
    • Properties
      • target
    • Methods
      • OnDrawVisualElements(VisualElement, Action)
      • OnGUI()
    • See Also
    Back to top
    Copyright © 2024 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)