AudioImporter

class in UnityEditor

/

Hereda de:AssetImporter

Cambiar al Manual

Descripción

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

Settings of this class match the ones exposed in 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.
preloadAudioDataPrecarga los datos de audio del clip cuando el asset del clip se carga. Cuando esta bandera está apagada (off), los scripts tienen que llamara a AudioClip.LoadAudioData() para cargar los datos antes de que el clip se reproduzca. Las propiedades como el largo (lenght), los canales (channels) y el formato (format) estarán disponibles antes de que los datos se carguen.

Funciones Públicas

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.

Miembros heredados

Variables

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantGet or set the AssetBundle variant.
assetPathThe path name of the asset for this importer. (Read Only)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataGet or set any user data.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

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.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

GetAtPathRetrieves the asset importer for the asset at 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.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961