Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


any

Returns true if any component of the input bool2 vector is true, false otherwise.
Read time 3 minutesLast updated 10 days ago

Definition

any(bool2)

Returns true if any component of the input bool2 vector is true, false otherwise.
public static bool any(bool2 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(bool3 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(bool4 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(int2 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(int3 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(int4 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(uint2 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(uint3 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(uint4 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(float2 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(float3 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(float4 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(double2 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(double3 x)

Parameters

Vector of values to compare.

Returns

Type

Description

boolTrue 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.
public static bool any(double4 x)

Parameters

Vector of values to compare.

Returns

Type

Description

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