# any

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.6/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## any(bool2)

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

```csharp
public static bool any(bool2 x)
```

### Parameters

**** (\[bool2]\(/engine/6000.6/script-reference/unity/mathematics/bool2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(bool3 x)
```

### Parameters

**** (\[bool3]\(/engine/6000.6/script-reference/unity/mathematics/bool3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(bool4 x)
```

### Parameters

**** (\[bool4]\(/engine/6000.6/script-reference/unity/mathematics/bool4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(int2 x)
```

### Parameters

**** (\[int2]\(/engine/6000.6/script-reference/unity/mathematics/int2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(int3 x)
```

### Parameters

**** (\[int3]\(/engine/6000.6/script-reference/unity/mathematics/int3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(int4 x)
```

### Parameters

**** (\[int4]\(/engine/6000.6/script-reference/unity/mathematics/int4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(uint2 x)
```

### Parameters

**** (\[uint2]\(/engine/6000.6/script-reference/unity/mathematics/uint2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(uint3 x)
```

### Parameters

**** (\[uint3]\(/engine/6000.6/script-reference/unity/mathematics/uint3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(uint4 x)
```

### Parameters

**** (\[uint4]\(/engine/6000.6/script-reference/unity/mathematics/uint4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.6/script-reference/unity/mathematics/float4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(double2 x)
```

### Parameters

**** (\[double2]\(/engine/6000.6/script-reference/unity/mathematics/double2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(double3 x)
```

### Parameters

**** (\[double3]\(/engine/6000.6/script-reference/unity/mathematics/double3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool any(double4 x)
```

### Parameters

**** (\[double4]\(/engine/6000.6/script-reference/unity/mathematics/double4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if any the components of x are non-zero, false otherwise. |
