docs.unity3d.com
    目次を表示する/隠す

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    See Also

    InvertVector2Processor
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)