---
title: Select(quaternion4, quaternion4, bool4)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/select
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/select.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:23:23.303Z
locale: en-us
---

# Select(quaternion4, quaternion4, bool4)

> Selects, for each lane, b where c is true and a otherwise.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static quaternion4 Select(this quaternion4 a, quaternion4 b, bool4 c)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to take the lanes from where `c` is `false`.**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to take the lanes from where `c` is `true`.**** (\[bool4]\(/engine/7000.0/script-reference/unity/mathematics/bool4)): The per-lane selector, one value in each lane.

### Returns

| Type                                                                           | Description                                                                                                              |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) | A [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) that combines the lanes of `a` and `b`. |
