# TryGetData<T>(out T)

> Test and return a piece of typed data if this ProcessorInstance.AvailableData.Element matches the type given.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Audio](/engine/6000.7/script-reference/unityengine/audio.md)
* **Assembly:** UnityEngine.AudioModule

## TryGetData\<T>(T)

```csharp
public bool TryGetData<T>(out T data) where T : unmanaged
```

### Parameters

**** (T): The typed piece of data to be extracted.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                          |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether this [ProcessorInstance.AvailableData.Element](/engine/6000.7/script-reference/unityengine/audio/processorinstance/availabledataelement.md) is of the same type as `T`, and if so, whether the `data` parameter was updated. |

### Remarks

Additional Resources: [ProcessorInstance.AvailableData](/engine/6000.7/script-reference/unityengine/audio/processorinstance/availabledata.md)
