docs.unity3d.com
    Show / Hide Table of Contents

    Class InvertProcessor

    An input processor that inverts its input value.

    Inheritance
    Object
    InputProcessor
    InputProcessor<Single>
    InvertProcessor
    Inherited Members
    InputProcessor<Single>.ProcessAsObject(Object, InputControl)
    InputProcessor<Single>.Process(Void*, Int32, InputControl)
    Namespace: UnityEngine.InputSystem.Processors
    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(Single, InputControl)

    Return the inverted value of value.

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

    Input value.

    InputControl control

    Ignored.

    Returns
    Type Description
    Single

    Invert value.

    Overrides
    UnityEngine.InputSystem.InputProcessor<System.Single>.Process(System.Single, UnityEngine.InputSystem.InputControl)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    In This Article
    • Methods
      • Process(Single, InputControl)
      • ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023