AudioImporter

class in UnityEditor

/

Inherits from:AssetImporter

Switch to Manual

Description

Аудио импортер позволяет вам модифицировать AudioClip настройки импорта из скриптов редактора.

Настройки этого класса совпадают с Audio Import Settings.

Variables

ambisonicWhen this flag is set, the audio clip will be treated as being ambisonic.
defaultSampleSettingsThe default sample settings for the AudioClip importer.
forceToMonoForce audioclips to mono?
loadInBackgroundCorresponding 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.
preloadAudioDataPreloads 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.

Public Functions

ClearSampleSettingOverrideClears the sample settings override for the given platform.
ContainsSampleSettingsOverrideReturns whether a given build target has its sample settings currently overridden.
GetOverrideSampleSettingsReturn the current override settings for the given platform.
SetOverrideSampleSettingsSets the override sample settings for the given platform.

Inherited members

Variables

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantПолучите или установите любые пользовательские данные.
assetPathИмя пути ассета для этого импортера. (Read Only)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataПолучите или установите любые пользовательские данные.

Public Functions

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantПолучите или установите любые пользовательские данные.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.

Static Functions

GetAtPathВосстанавливает импортер ассетов для ассета в path.