docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method any

    any(bool2)

    Returns true if any component of the input bool2 vector is true, false otherwise.

    Declaration
    public static bool any(bool2 x)
    Parameters
    Type Name Description
    bool2 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are true, false otherwise.

    any(bool3)

    Returns true if any component of the input bool3 vector is true, false otherwise.

    Declaration
    public static bool any(bool3 x)
    Parameters
    Type Name Description
    bool3 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are true, false otherwise.

    any(bool4)

    Returns true if any components of the input bool4 vector is true, false otherwise.

    Declaration
    public static bool any(bool4 x)
    Parameters
    Type Name Description
    bool4 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are true, false otherwise.

    any(int2)

    Returns true if any component of the input int2 vector is non-zero, false otherwise.

    Declaration
    public static bool any(int2 x)
    Parameters
    Type Name Description
    int2 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(int3)

    Returns true if any component of the input int3 vector is non-zero, false otherwise.

    Declaration
    public static bool any(int3 x)
    Parameters
    Type Name Description
    int3 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(int4)

    Returns true if any components of the input int4 vector is non-zero, false otherwise.

    Declaration
    public static bool any(int4 x)
    Parameters
    Type Name Description
    int4 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(uint2)

    Returns true if any component of the input uint2 vector is non-zero, false otherwise.

    Declaration
    public static bool any(uint2 x)
    Parameters
    Type Name Description
    uint2 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(uint3)

    Returns true if any component of the input uint3 vector is non-zero, false otherwise.

    Declaration
    public static bool any(uint3 x)
    Parameters
    Type Name Description
    uint3 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(uint4)

    Returns true if any components of the input uint4 vector is non-zero, false otherwise.

    Declaration
    public static bool any(uint4 x)
    Parameters
    Type Name Description
    uint4 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(float2)

    Returns true if any component of the input float2 vector is non-zero, false otherwise.

    Declaration
    public static bool any(float2 x)
    Parameters
    Type Name Description
    float2 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(float3)

    Returns true if any component of the input float3 vector is non-zero, false otherwise.

    Declaration
    public static bool any(float3 x)
    Parameters
    Type Name Description
    float3 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(float4)

    Returns true if any component of the input float4 vector is non-zero, false otherwise.

    Declaration
    public static bool any(float4 x)
    Parameters
    Type Name Description
    float4 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(double2)

    Returns true if any component of the input double2 vector is non-zero, false otherwise.

    Declaration
    public static bool any(double2 x)
    Parameters
    Type Name Description
    double2 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(double3)

    Returns true if any component of the input double3 vector is non-zero, false otherwise.

    Declaration
    public static bool any(double3 x)
    Parameters
    Type Name Description
    double3 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    any(double4)

    Returns true if any component of the input double4 vector is non-zero, false otherwise.

    Declaration
    public static bool any(double4 x)
    Parameters
    Type Name Description
    double4 x

    Vector of values to compare.

    Returns
    Type Description
    bool

    True if any the components of x are non-zero, false otherwise.

    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)