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Получите или установите любые пользовательские данные.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

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Получите или установите любые пользовательские данные.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Static Functions

GetAtPathВосстанавливает импортер ассетов для ассета в path.
DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.