docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Swap

    Swap<T>(ref T, ref T)

    Swaps two values.

    Declaration
    public static void Swap<T>(ref T a, ref T b)
    Parameters
    Type Name Description
    T a

    First value.

    T b

    Second value.

    Type Parameters
    Name Description
    T

    Type of the values

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 06 October 2023