SetOverrideSampleSettings
Sets the override sample settings for the given platform.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
SetOverrideSampleSettings(string, AudioImporterSampleSettings)
Sets the override sample settings for the given platform.
public bool SetOverrideSampleSettings(string platform, AudioImporterSampleSettings settings)
Parameters
The platform which will have the sample settings overridden.
See BuildTargetGroup for the complete list of options and type the desired platform enum name in the form of a string.
The override settings for the given platform.
Returns
Type | Description |
|---|---|
| bool | 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.
public bool SetOverrideSampleSettings(BuildTargetGroup platformGroup, AudioImporterSampleSettings settings)
Parameters
The platform which will have the sample settings overridden.
See BuildTargetGroup for the complete list of options.
The override settings for the given platform.
Returns
Type | Description |
|---|---|
| bool | 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.