docs.unity.cn
    Show / Hide Table of Contents

    Class NormalizeVector3Processor

    Normalizes a Vector3 input value.

    Inheritance
    Object
    InputProcessor
    InputProcessor<Vector3>
    NormalizeVector3Processor
    Inherited Members
    InputProcessor<Vector3>.ProcessAsObject(Object, InputControl)
    InputProcessor<Vector3>.Process(Void*, Int32, InputControl)
    Namespace: UnityEngine.InputSystem.Processors
    Syntax
    public class NormalizeVector3Processor : InputProcessor<Vector3>
    Remarks

    This processor is registered (see RegisterProcessor<T>(String)) under the name "normalizeVector3".

    Methods

    Process(Vector3, InputControl)

    Normalize value. Performs the equivalent of value.normalized.

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

    Input vector.

    InputControl control

    Ignored.

    Returns
    Type Description
    Vector3

    Normalized vector.

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    See Also

    NormalizeVector2Processor
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, January 5, 2022
    Terms of use