docs.unity3d.com
    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*, Int32, InputControl)
    Namespace: UnityEngine.InputSystem.Processors
    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
    Boolean

    invertY

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

    Declaration
    public bool invertY
    Field Value
    Type Description
    Boolean

    invertZ

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

    Declaration
    public bool invertZ
    Field Value
    Type Description
    Boolean

    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
    UnityEngine.InputSystem.InputProcessor<Vector3>.Process(Vector3, UnityEngine.InputSystem.InputControl)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    See Also

    InvertVector2Processor
    In This Article
    • Fields
      • invertX
      • invertY
      • invertZ
    • Methods
      • Process(Vector3, InputControl)
      • ToString()
    • See Also
    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