docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InvertVector3Processor

    Inverts the x and/or y and/or z channel of a Vector3.

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

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

    // Bind to gravity sensor such that its Y value is inverted.
    new InputAction(binding: "<GravitySensor>/gravity", processors="invertVector3(invertX=false,invertY,invertZ=false)");

    Fields

    invertX

    If true, the x channel of the Vector3 input value is inverted. True by default.

    Declaration
    public bool invertX
    Field Value
    Type Description
    bool
    See Also
    InvertVector2Processor

    invertY

    If true, the y channel of the Vector3 input value is inverted. True by default.

    Declaration
    public bool invertY
    Field Value
    Type Description
    bool
    See Also
    InvertVector2Processor

    invertZ

    If true, the z channel of the Vector3 input value is inverted. True by default.

    Declaration
    public bool invertZ
    Field Value
    Type Description
    bool
    See Also
    InvertVector2Processor

    Methods

    Process(Vector3, InputControl)

    Return the given vector with the respective channels being inverted.

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

    Input value.

    InputControl control

    Ignored.

    Returns
    Type Description
    Vector3

    Vector with channels inverted according to invertX, invertY, and invertZ.

    Overrides
    InputProcessor<Vector3>.Process(Vector3, InputControl)
    See Also
    InvertVector2Processor

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    See Also
    InvertVector2Processor

    See Also

    InvertVector2Processor
    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)