Version: 5.6

AudioImporter

class in UnityEditor

/

Inherits from:AssetImporter

Switch to Manual

Description

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

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

Variables

defaultSampleSettingsThe default sample settings for the AudioClip importer.
forceToMonoСделать данный клип монофоничным?
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)
userDataПолучите или установите любые пользовательские данные.

Public Functions

SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantПолучите или установите любые пользовательские данные.

Static Functions

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