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

    ToString()

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

    See Also

    NormalizeVector2Processor
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on 27 March 2023
    Terms of use