docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method asuint

    asuint(int)

    Returns the bit pattern of an int as a uint.

    Declaration
    public static uint asuint(int x)
    Parameters
    Type Name Description
    int x

    The int bits to copy.

    Returns
    Type Description
    uint

    The uint with the same bit pattern as the input.

    asuint(int2)

    Returns the bit pattern of an int2 as a uint2.

    Declaration
    public static uint2 asuint(int2 x)
    Parameters
    Type Name Description
    int2 x

    The int2 bits to copy.

    Returns
    Type Description
    uint2

    The uint2 with the same bit pattern as the input.

    asuint(int3)

    Returns the bit pattern of an int3 as a uint3.

    Declaration
    public static uint3 asuint(int3 x)
    Parameters
    Type Name Description
    int3 x

    The int3 bits to copy.

    Returns
    Type Description
    uint3

    The uint3 with the same bit pattern as the input.

    asuint(int4)

    Returns the bit pattern of an int4 as a uint4.

    Declaration
    public static uint4 asuint(int4 x)
    Parameters
    Type Name Description
    int4 x

    The int4 bits to copy.

    Returns
    Type Description
    uint4

    The uint4 with the same bit pattern as the input.

    asuint(float)

    Returns the bit pattern of a float as a uint.

    Declaration
    public static uint asuint(float x)
    Parameters
    Type Name Description
    float x

    The float bits to copy.

    Returns
    Type Description
    uint

    The uint with the same bit pattern as the input.

    asuint(float2)

    Returns the bit pattern of a float2 as a uint2.

    Declaration
    public static uint2 asuint(float2 x)
    Parameters
    Type Name Description
    float2 x

    The float2 bits to copy.

    Returns
    Type Description
    uint2

    The uint2 with the same bit pattern as the input.

    asuint(float3)

    Returns the bit pattern of a float3 as a uint3.

    Declaration
    public static uint3 asuint(float3 x)
    Parameters
    Type Name Description
    float3 x

    The float3 bits to copy.

    Returns
    Type Description
    uint3

    The uint3 with the same bit pattern as the input.

    asuint(float4)

    Returns the bit pattern of a float4 as a uint4.

    Declaration
    public static uint4 asuint(float4 x)
    Parameters
    Type Name Description
    float4 x

    The float4 bits to copy.

    Returns
    Type Description
    uint4

    The uint4 with the same bit pattern as the input.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)