docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InvertProcessor

    An input processor that inverts its input value.

    Inheritance
    object
    InputProcessor
    InputProcessor<float>
    InvertProcessor
    Inherited Members
    InputProcessor<float>.ProcessAsObject(object, InputControl)
    InputProcessor<float>.Process(void*, int, InputControl)
    InputProcessor.cachingPolicy
    Namespace: UnityEngine.InputSystem.Processors
    Assembly: Unity.InputSystem.dll
    Syntax
    public class InvertProcessor : InputProcessor<float>
    Remarks

    This process is registered (see RegisterProcessor<T>(string) as "invert" by default.

    // Bind to the gamepad's left trigger such that it returns inverted values.
    new InputAction(binding: "<Gamepad>/leftTrigger", processors="invert");

    Methods

    Process(float, InputControl)

    Return the inverted value of value.

    Declaration
    public override float Process(float value, InputControl control)
    Parameters
    Type Name Description
    float value

    Input value.

    InputControl control

    Ignored.

    Returns
    Type Description
    float

    Invert value.

    Overrides
    InputProcessor<float>.Process(float, InputControl)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In This Article
    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)