Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.any

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool any(bool2 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(bool3 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(bool4 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(int2 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(int3 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(int4 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(uint2 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(uint3 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(uint4 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(float2 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(float3 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(float4 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(double2 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(double3 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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


Declaration

public static bool any(double4 x);

Parameters

Parameter Description
x Vector of values to compare.

Returns

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

Description

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