docs.unity3d.com
    Show / Hide Table of Contents

    Normalize

    Menu Path : Operator > Math > Vector

    The Normalize uniform Operator normalizes an input vector.

    Any zero-length input vector results in a Not-A-Number (NaN) result, which breaks subsequent calculations.

    Operator properties

    Input Type Description
    X Configurable The input vector
    Output Type Description
    Output Dependent The normalized version of X.
    The Type changes to match the type of X.

    Operator configuration

    To view this uniform Operator's configuration, click the cog icon in the Node's header. Here you can configure the data type this Operator uses.

    Available types

    You can use the following types for your Input values and ports:

    • Position
    • Vector
    • Direction
    • Vector3
    • Vector4
    • Vector2
    • Float
    In This Article
    • Operator properties
    • Operator configuration
      • Available types
    Back to top
    Terms of use
    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