C# Class UnityEditor.AudioImporter

Audio importer lets you modify AudioClip import settings from editor scripts.

Inheritance: AssetImporter
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Internal_ClearSampleSettingOverride bool
Internal_ContainsSampleSettingsOverride bool
Internal_GetLoadInBackground bool
Internal_GetOverrideSampleSettings AudioImporterSampleSettings
Internal_GetPreloadAudioData bool
Internal_SetLoadInBackground void
Internal_SetOverrideSampleSettings bool
Internal_SetPreloadAudioData void
maxBitrate int
minBitrate int
updateOrigData void

Public Methods

Method Description
ClearSampleSettingOverride ( string platform ) : bool

Clears the sample settings override for the given platform.

ContainsSampleSettingsOverride ( string platform ) : bool

Returns whether a given build target has its sample settings currently overridden.

GetOverrideSampleSettings ( string platform ) : AudioImporterSampleSettings

Return the current override settings for the given platform.

SetOverrideSampleSettings ( string platform, AudioImporterSampleSettings settings ) : bool

Sets the override sample settings for the given platform.

Private Methods

Method Description
Internal_ClearSampleSettingOverride ( BuildTargetGroup platform ) : bool
Internal_ContainsSampleSettingsOverride ( BuildTargetGroup platformGroup ) : bool
Internal_GetLoadInBackground ( ) : bool
Internal_GetOverrideSampleSettings ( BuildTargetGroup platformGroup ) : AudioImporterSampleSettings
Internal_GetPreloadAudioData ( ) : bool
Internal_SetLoadInBackground ( bool flag ) : void
Internal_SetOverrideSampleSettings ( BuildTargetGroup platformGroup, AudioImporterSampleSettings settings ) : bool
Internal_SetPreloadAudioData ( bool flag ) : void
maxBitrate ( AudioType type ) : int
minBitrate ( AudioType type ) : int
updateOrigData ( ) : void

Method Details

ClearSampleSettingOverride() public method

Clears the sample settings override for the given platform.

public ClearSampleSettingOverride ( string platform ) : bool
platform string The platform to clear the overrides for.
return bool

ContainsSampleSettingsOverride() public method

Returns whether a given build target has its sample settings currently overridden.

public ContainsSampleSettingsOverride ( string platform ) : bool
platform string The platform to query if this AudioImporter has an override for.
return bool

GetOverrideSampleSettings() public method

Return the current override settings for the given platform.

public GetOverrideSampleSettings ( string platform ) : AudioImporterSampleSettings
platform string The platform to get the override settings for.
return AudioImporterSampleSettings

SetOverrideSampleSettings() public method

Sets the override sample settings for the given platform.

public SetOverrideSampleSettings ( string platform, AudioImporterSampleSettings settings ) : bool
platform string The platform which will have the sample settings overridden.
settings AudioImporterSampleSettings The override settings for the given platform.
return bool