Version: 2017.1

VideoClipImporter

class in UnityEditor

/

Hereda de:AssetImporter

Cambiar al Manual

Descripción

VideoClipImporter lets you modify VideoClip import settings from Editor scripts.

See the Movie File Format Support Notes section in the VideoPlayer class documentation for supported movie file formats and encoding guidelines.

Variables

defaultTargetSettingsDefault values for the platform-specific import settings.
deinterlaceModeImages are deinterlaced during transcode. This tells the importer how to interpret fields in the source, if any.
flipHorizontalApply a horizontal flip during import.
flipVerticalApply a vertical flip during import.
frameCountNumber of frames in the clip.
frameRateFrame rate of the clip.
importAudioImport audio tracks from source file.
isPlayingPreviewWhether the preview is currently playing.
keepAlphaWhether to keep the alpha from the source into the transcoded clip.
linearColorUsed in legacy import mode. Same as MovieImport.linearTexture.
outputFileSizeSize in bytes of the file once imported.
qualityUsed in legacy import mode. Same as MovieImport.quality.
sourceAudioTrackCountNumber of audio tracks in the source file.
sourceFileSizeSize in bytes of the file before importing.
sourceHasAlphaTrue if the source file has a channel for per-pixel transparency.
useLegacyImporterWhether to import a MovieTexture (legacy) or a VideoClip.

Funciones Públicas

ClearTargetSettingsClear the platform-specific import settings for the specified platform, causing them to go back to the default settings.
GetPreviewTextureReturns a texture with the transcoded clip's current frame. Returns frame 0 when not playing, and frame at current time when playing.
GetResizeHeightGet the resulting height of the resize operation for the specified resize mode.
GetResizeModeNameGet the full name of the resize operation for the specified resize mode.
GetResizeWidthGet the resulting width of the resize operation for the specified resize mode.
GetSourceAudioChannelCountNumber of audio channels in the specified source track.
GetSourceAudioSampleRateSample rate of the specified audio track.
GetTargetSettingsReturns the platform-specific import settings for the specified platform.
PlayPreviewStarts preview playback.
SetTargetSettingsSets the platform-specific import settings for the specified platform.
StopPreviewStops preview playback.

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)
userDataGet or set any user data.
hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.

Funciones Públicas

SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringDevuelve el nombre del objeto.

Funciones Estáticas

GetAtPathRetrieves the asset importer for the asset at path.
DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
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