docs.unity.cn
    Show / Hide Table of Contents

    Method NextFloat2Direction

    NextFloat2Direction()

    Returns a unit length float2 vector representing a uniformly random 2D direction.

    Declaration
    public float2 NextFloat2Direction()
    Returns
    Type Description
    float2

    A uniformly random unit length float2 vector.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use