Аудио импортер позволяет вам модифицировать AudioClip настройки импорта из скриптов редактора.
Настройки этого класса совпадают с Audio Import Settings.
ambisonic | When this flag is set, the audio clip will be treated as being ambisonic. |
defaultSampleSettings | The default sample settings for the AudioClip importer. |
forceToMono | Force audioclips to mono? |
loadInBackground | Corresponding to the "Load In Background" flag in the AudioClip inspector, when this flag is set, the loading of the clip will happen delayed without blocking the main thread. |
preloadAudioData | Preloads audio data of the clip when the clip asset is loaded. When this flag is off, scripts have to call AudioClip.LoadAudioData() to load the data before the clip can be played. Properties like length, channels and format are available before the audio data has been loaded. |
ClearSampleSettingOverride | Clears the sample settings override for the given platform. |
ContainsSampleSettingsOverride | Returns whether a given build target has its sample settings currently overridden. |
GetOverrideSampleSettings | Return the current override settings for the given platform. |
SetOverrideSampleSettings | Sets the override sample settings for the given platform. |
assetBundleName | Get or set the AssetBundle name. |
assetBundleVariant | Получите или установите любые пользовательские данные. |
assetPath | Имя пути ассета для этого импортера. (Read Only) |
importSettingsMissing | The value is true when no meta file is provided with the imported asset. |
userData | Получите или установите любые пользовательские данные. |
AddRemap | Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type. |
GetExternalObjectMap | Gets a copy of the external object map used by the AssetImporter. |
RemoveRemap | Removes an item from the map of external objects. |
SaveAndReimport | Save asset importer settings if asset importer is dirty. |
SetAssetBundleNameAndVariant | Получите или установите любые пользовательские данные. |
SupportsRemappedAssetType | Checks if the AssetImporter supports remapping the given asset type. |
GetAtPath | Восстанавливает импортер ассетов для ассета в path. |