# GetValues

> Retrieves the float or integer value for each [[BoundProperty].

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.6/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

## GetValues(NativeArray\<BoundProperty>, NativeArray\<float>)

Retrieves the float or integer value for each \[\[BoundProperty].

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<float> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<float>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the values list does not match the length of the boundProperties list.

## GetValues(NativeArray\<BoundProperty>, NativeArray\<int>, NativeArray\<float>)

Retrieves the float or integer value for each \[\[BoundProperty] and writes the value at a different index specified by the indices list.

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<float> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of indices where each [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) value will be written.**** (\[NativeArray\<float>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.

This method throws an IndexOutOfRangeException if an index in the indices list is out of range.

## GetValues(NativeArray\<BoundProperty>, NativeArray\<int>)

Retrieves the float or integer value for each \[\[BoundProperty].

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the values list does not match the length of the boundProperties list.

## GetValues(NativeArray\<BoundProperty>, NativeArray\<int>, NativeArray\<int>)

Retrieves the float or integer value for each \[\[BoundProperty] and writes the value at a different index specified by the indices list.

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<int> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of indices where each [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) value will be written.**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.

This method throws an IndexOutOfRangeException if an index in the indices list is out of range.

## GetValues(NativeArray\<BoundProperty>, NativeArray\<EntityId>)

Retrieves the float or integer value for each \[\[BoundProperty].

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<EntityId> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<EntityId>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the values list does not match the length of the boundProperties list.

## GetValues(NativeArray\<BoundProperty>, NativeArray\<int>, NativeArray\<EntityId>)

Retrieves the float or integer value for each \[\[BoundProperty] and writes the value at a different index specified by the indices list.

```csharp
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<EntityId> values)
```

### Parameters

**** (\[NativeArray\<BoundProperty>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) to get the values from.**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of indices where each [BoundProperty](/engine/6000.6/script-reference/unityengine/animations/boundproperty.md) value will be written.**** (\[NativeArray\<EntityId>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Returns the list of float or integer values.

### Remarks

This method throws an ArgumentException if the NativeArray is not yet created.

This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.

This method throws an IndexOutOfRangeException if an index in the indices list is out of range.
