# SetOverrideSampleSettings

> Sets the override sample settings for the given platform.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## SetOverrideSampleSettings(string, AudioImporterSampleSettings)

Sets the override sample settings for the given platform.

```csharp
public bool SetOverrideSampleSettings(string platform, AudioImporterSampleSettings settings)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The platform which will have the sample settings overridden.See [BuildTargetGroup](/engine/6000.7/script-reference/unityeditor/buildtargetgroup.md) for the complete list of options and type the desired platform enum name in the form of a string.**** (\[AudioImporterSampleSettings]\(/engine/6000.7/script-reference/unityeditor/audioimportersamplesettings)): The override settings for the given platform.

### Returns

| Type                                                          | Description                                                                                                                                                                                    |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the settings were successfully overriden. Some setting overrides are not possible for the given platform, in which case false is returned and the settings are not registered. |

### Remarks

For certain target platforms, overriding the audio importer settings may be beneficial for performance or other reasons. This function enables the registration of override settings specific to a given platform.

## SetOverrideSampleSettings(BuildTargetGroup, AudioImporterSampleSettings)

Sets the override sample settings for the given platform.

```csharp
public bool SetOverrideSampleSettings(BuildTargetGroup platformGroup, AudioImporterSampleSettings settings)
```

### Parameters

**** (\[BuildTargetGroup]\(/engine/6000.7/script-reference/unityeditor/buildtargetgroup)): The platform which will have the sample settings overridden.See [BuildTargetGroup](/engine/6000.7/script-reference/unityeditor/buildtargetgroup.md) for the complete list of options.**** (\[AudioImporterSampleSettings]\(/engine/6000.7/script-reference/unityeditor/audioimportersamplesettings)): The override settings for the given platform.

### Returns

| Type                                                          | Description                                                                                                                                                                                    |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the settings were successfully overriden. Some setting overrides are not possible for the given platform, in which case false is returned and the settings are not registered. |

### Remarks

For certain target platforms, overriding the audio importer settings may be beneficial for performance or other reasons. This function enables the registration of override settings specific to a given platform.
