docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method hash

    hash(AffineTransform)

    Returns a uint hash code of an AffineTransform.

    Declaration
    public static uint hash(AffineTransform a)
    Parameters
    Type Name Description
    AffineTransform a

    The AffineTransform to hash.

    Returns
    Type Description
    uint

    The hash code of the input AffineTransform.

    hash(bool2)

    Returns a uint hash code of a bool2 vector.

    Declaration
    public static uint hash(bool2 v)
    Parameters
    Type Name Description
    bool2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool2x2)

    Returns a uint hash code of a bool2x2 matrix.

    Declaration
    public static uint hash(bool2x2 v)
    Parameters
    Type Name Description
    bool2x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool2x3)

    Returns a uint hash code of a bool2x3 matrix.

    Declaration
    public static uint hash(bool2x3 v)
    Parameters
    Type Name Description
    bool2x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool2x4)

    Returns a uint hash code of a bool2x4 matrix.

    Declaration
    public static uint hash(bool2x4 v)
    Parameters
    Type Name Description
    bool2x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool3)

    Returns a uint hash code of a bool3 vector.

    Declaration
    public static uint hash(bool3 v)
    Parameters
    Type Name Description
    bool3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool3x2)

    Returns a uint hash code of a bool3x2 matrix.

    Declaration
    public static uint hash(bool3x2 v)
    Parameters
    Type Name Description
    bool3x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool3x3)

    Returns a uint hash code of a bool3x3 matrix.

    Declaration
    public static uint hash(bool3x3 v)
    Parameters
    Type Name Description
    bool3x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool3x4)

    Returns a uint hash code of a bool3x4 matrix.

    Declaration
    public static uint hash(bool3x4 v)
    Parameters
    Type Name Description
    bool3x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool4)

    Returns a uint hash code of a bool4 vector.

    Declaration
    public static uint hash(bool4 v)
    Parameters
    Type Name Description
    bool4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool4x2)

    Returns a uint hash code of a bool4x2 matrix.

    Declaration
    public static uint hash(bool4x2 v)
    Parameters
    Type Name Description
    bool4x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool4x3)

    Returns a uint hash code of a bool4x3 matrix.

    Declaration
    public static uint hash(bool4x3 v)
    Parameters
    Type Name Description
    bool4x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(bool4x4)

    Returns a uint hash code of a bool4x4 matrix.

    Declaration
    public static uint hash(bool4x4 v)
    Parameters
    Type Name Description
    bool4x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double2)

    Returns a uint hash code of a double2 vector.

    Declaration
    public static uint hash(double2 v)
    Parameters
    Type Name Description
    double2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double2x2)

    Returns a uint hash code of a double2x2 matrix.

    Declaration
    public static uint hash(double2x2 v)
    Parameters
    Type Name Description
    double2x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double2x3)

    Returns a uint hash code of a double2x3 matrix.

    Declaration
    public static uint hash(double2x3 v)
    Parameters
    Type Name Description
    double2x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double2x4)

    Returns a uint hash code of a double2x4 matrix.

    Declaration
    public static uint hash(double2x4 v)
    Parameters
    Type Name Description
    double2x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double3)

    Returns a uint hash code of a double3 vector.

    Declaration
    public static uint hash(double3 v)
    Parameters
    Type Name Description
    double3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double3x2)

    Returns a uint hash code of a double3x2 matrix.

    Declaration
    public static uint hash(double3x2 v)
    Parameters
    Type Name Description
    double3x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double3x3)

    Returns a uint hash code of a double3x3 matrix.

    Declaration
    public static uint hash(double3x3 v)
    Parameters
    Type Name Description
    double3x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double3x4)

    Returns a uint hash code of a double3x4 matrix.

    Declaration
    public static uint hash(double3x4 v)
    Parameters
    Type Name Description
    double3x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double4)

    Returns a uint hash code of a double4 vector.

    Declaration
    public static uint hash(double4 v)
    Parameters
    Type Name Description
    double4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double4x2)

    Returns a uint hash code of a double4x2 matrix.

    Declaration
    public static uint hash(double4x2 v)
    Parameters
    Type Name Description
    double4x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double4x3)

    Returns a uint hash code of a double4x3 matrix.

    Declaration
    public static uint hash(double4x3 v)
    Parameters
    Type Name Description
    double4x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(double4x4)

    Returns a uint hash code of a double4x4 matrix.

    Declaration
    public static uint hash(double4x4 v)
    Parameters
    Type Name Description
    double4x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float2)

    Returns a uint hash code of a float2 vector.

    Declaration
    public static uint hash(float2 v)
    Parameters
    Type Name Description
    float2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float2x2)

    Returns a uint hash code of a float2x2 matrix.

    Declaration
    public static uint hash(float2x2 v)
    Parameters
    Type Name Description
    float2x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float2x3)

    Returns a uint hash code of a float2x3 matrix.

    Declaration
    public static uint hash(float2x3 v)
    Parameters
    Type Name Description
    float2x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float2x4)

    Returns a uint hash code of a float2x4 matrix.

    Declaration
    public static uint hash(float2x4 v)
    Parameters
    Type Name Description
    float2x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float3)

    Returns a uint hash code of a float3 vector.

    Declaration
    public static uint hash(float3 v)
    Parameters
    Type Name Description
    float3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float3x2)

    Returns a uint hash code of a float3x2 matrix.

    Declaration
    public static uint hash(float3x2 v)
    Parameters
    Type Name Description
    float3x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float3x3)

    Returns a uint hash code of a float3x3 matrix.

    Declaration
    public static uint hash(float3x3 v)
    Parameters
    Type Name Description
    float3x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float3x4)

    Returns a uint hash code of a float3x4 matrix.

    Declaration
    public static uint hash(float3x4 v)
    Parameters
    Type Name Description
    float3x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float4)

    Returns a uint hash code of a float4 vector.

    Declaration
    public static uint hash(float4 v)
    Parameters
    Type Name Description
    float4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float4x2)

    Returns a uint hash code of a float4x2 matrix.

    Declaration
    public static uint hash(float4x2 v)
    Parameters
    Type Name Description
    float4x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float4x3)

    Returns a uint hash code of a float4x3 matrix.

    Declaration
    public static uint hash(float4x3 v)
    Parameters
    Type Name Description
    float4x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(float4x4)

    Returns a uint hash code of a float4x4 matrix.

    Declaration
    public static uint hash(float4x4 v)
    Parameters
    Type Name Description
    float4x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(half)

    Returns a uint hash code of a half value.

    Declaration
    public static uint hash(half v)
    Parameters
    Type Name Description
    half v

    The half value to hash.

    Returns
    Type Description
    uint

    The computed hash code of the half value.

    hash(half2)

    Returns a uint hash code of a half2 vector.

    Declaration
    public static uint hash(half2 v)
    Parameters
    Type Name Description
    half2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(half3)

    Returns a uint hash code of a half3 vector.

    Declaration
    public static uint hash(half3 v)
    Parameters
    Type Name Description
    half3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(half4)

    Returns a uint hash code of a half4 vector.

    Declaration
    public static uint hash(half4 v)
    Parameters
    Type Name Description
    half4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int2)

    Returns a uint hash code of a int2 vector.

    Declaration
    public static uint hash(int2 v)
    Parameters
    Type Name Description
    int2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int2x2)

    Returns a uint hash code of a int2x2 matrix.

    Declaration
    public static uint hash(int2x2 v)
    Parameters
    Type Name Description
    int2x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int2x3)

    Returns a uint hash code of a int2x3 matrix.

    Declaration
    public static uint hash(int2x3 v)
    Parameters
    Type Name Description
    int2x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int2x4)

    Returns a uint hash code of a int2x4 matrix.

    Declaration
    public static uint hash(int2x4 v)
    Parameters
    Type Name Description
    int2x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int3)

    Returns a uint hash code of a int3 vector.

    Declaration
    public static uint hash(int3 v)
    Parameters
    Type Name Description
    int3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int3x2)

    Returns a uint hash code of a int3x2 matrix.

    Declaration
    public static uint hash(int3x2 v)
    Parameters
    Type Name Description
    int3x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int3x3)

    Returns a uint hash code of a int3x3 matrix.

    Declaration
    public static uint hash(int3x3 v)
    Parameters
    Type Name Description
    int3x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int3x4)

    Returns a uint hash code of a int3x4 matrix.

    Declaration
    public static uint hash(int3x4 v)
    Parameters
    Type Name Description
    int3x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int4)

    Returns a uint hash code of a int4 vector.

    Declaration
    public static uint hash(int4 v)
    Parameters
    Type Name Description
    int4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int4x2)

    Returns a uint hash code of a int4x2 matrix.

    Declaration
    public static uint hash(int4x2 v)
    Parameters
    Type Name Description
    int4x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int4x3)

    Returns a uint hash code of a int4x3 matrix.

    Declaration
    public static uint hash(int4x3 v)
    Parameters
    Type Name Description
    int4x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(int4x4)

    Returns a uint hash code of a int4x4 matrix.

    Declaration
    public static uint hash(int4x4 v)
    Parameters
    Type Name Description
    int4x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(void*, int, uint)

    Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context.

    Declaration
    public static uint hash(void* pBuffer, int numBytes, uint seed = 0)
    Parameters
    Type Name Description
    void* pBuffer

    A pointer to the beginning of the data.

    int numBytes

    Number of bytes to hash.

    uint seed

    Starting seed value.

    Returns
    Type Description
    uint

    The 32 bit hash of the input data buffer.

    hash(quaternion)

    Returns a uint hash code of a quaternion.

    Declaration
    public static uint hash(quaternion q)
    Parameters
    Type Name Description
    quaternion q

    The quaternion to hash.

    Returns
    Type Description
    uint

    The hash code for the input quaternion.

    hash(RigidTransform)

    Returns a uint hash code of a RigidTransform.

    Declaration
    public static uint hash(RigidTransform t)
    Parameters
    Type Name Description
    RigidTransform t

    The RigidTransform to hash.

    Returns
    Type Description
    uint

    The hash code of the input RigidTransform

    hash(uint2)

    Returns a uint hash code of a uint2 vector.

    Declaration
    public static uint hash(uint2 v)
    Parameters
    Type Name Description
    uint2 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint2x2)

    Returns a uint hash code of a uint2x2 matrix.

    Declaration
    public static uint hash(uint2x2 v)
    Parameters
    Type Name Description
    uint2x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint2x3)

    Returns a uint hash code of a uint2x3 matrix.

    Declaration
    public static uint hash(uint2x3 v)
    Parameters
    Type Name Description
    uint2x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint2x4)

    Returns a uint hash code of a uint2x4 matrix.

    Declaration
    public static uint hash(uint2x4 v)
    Parameters
    Type Name Description
    uint2x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint3)

    Returns a uint hash code of a uint3 vector.

    Declaration
    public static uint hash(uint3 v)
    Parameters
    Type Name Description
    uint3 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint3x2)

    Returns a uint hash code of a uint3x2 matrix.

    Declaration
    public static uint hash(uint3x2 v)
    Parameters
    Type Name Description
    uint3x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint3x3)

    Returns a uint hash code of a uint3x3 matrix.

    Declaration
    public static uint hash(uint3x3 v)
    Parameters
    Type Name Description
    uint3x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint3x4)

    Returns a uint hash code of a uint3x4 matrix.

    Declaration
    public static uint hash(uint3x4 v)
    Parameters
    Type Name Description
    uint3x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint4)

    Returns a uint hash code of a uint4 vector.

    Declaration
    public static uint hash(uint4 v)
    Parameters
    Type Name Description
    uint4 v

    Vector value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint4x2)

    Returns a uint hash code of a uint4x2 matrix.

    Declaration
    public static uint hash(uint4x2 v)
    Parameters
    Type Name Description
    uint4x2 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint4x3)

    Returns a uint hash code of a uint4x3 matrix.

    Declaration
    public static uint hash(uint4x3 v)
    Parameters
    Type Name Description
    uint4x3 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    hash(uint4x4)

    Returns a uint hash code of a uint4x4 matrix.

    Declaration
    public static uint hash(uint4x4 v)
    Parameters
    Type Name Description
    uint4x4 v

    Matrix value to hash.

    Returns
    Type Description
    uint

    uint hash of the argument.

    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)