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.
defaultTargetSettings | Default values for the platform-specific import settings. |
deinterlaceMode | Images are deinterlaced during transcode. This tells the importer how to interpret fields in the source, if any. |
flipHorizontal | Apply a horizontal flip during import. |
flipVertical | Apply a vertical flip during import. |
frameCount | Number of frames in the clip. |
frameRate | Frame rate of the clip. |
importAudio | Import audio tracks from source file. |
isPlayingPreview | Whether the preview is currently playing. |
keepAlpha | Whether to keep the alpha from the source into the transcoded clip. |
outputFileSize | Size in bytes of the file once imported. |
pixelAspectRatioDenominator | Denominator of the pixel aspect ratio (num:den). |
pixelAspectRatioNumerator | Numerator of the pixel aspect ratio (num:den). |
sourceAudioTrackCount | Number of audio tracks in the source file. |
sourceFileSize | Size in bytes of the file before importing. |
sourceHasAlpha | True if the source file has a channel for per-pixel transparency. |
sRGBClip | Whether the imported clip contains sRGB color data. |
transcodeSkipped | Returns true if transcoding was skipped during import, false otherwise. (Read Only)When VideoImporterTargetSettings.enableTranscoding is set to true, the resulting transcoding operation done at import time may be quite long, up to many hours depending on source resolution and content duration. An option to skip this process is offered in the asset import progress bar. When skipped, the transcoding instead provides a non-transcoded verision of the asset. However, the importer settings stay intact so this property can be inspected to detect the incoherence with the generated artifact.Re-importing without stopping the transcode process, or with transcode turned off, causes this property to become false. |
ClearTargetSettings | Clear the platform-specific import settings for the specified platform, causing them to go back to the default settings. |
Equals | Performs a value comparison with another VideoClipImporter. |
GetPreviewTexture | Returns a texture with the transcoded clip's current frame. Returns frame 0 when not playing, and frame at current time when playing. |
GetResizeHeight | Get the resulting height of the resize operation for the specified resize mode. |
GetResizeModeName | Get the full name of the resize operation for the specified resize mode. |
GetResizeWidth | Get the resulting width of the resize operation for the specified resize mode. |
GetSourceAudioChannelCount | Number of audio channels in the specified source track. |
GetSourceAudioSampleRate | Sample rate of the specified audio track. |
GetTargetSettings | Returns the platform-specific import settings for the specified platform. |
PlayPreview | Starts preview playback. |
SetTargetSettings | Sets the platform-specific import settings for the specified platform. |
StopPreview | Stops preview playback. |
assetBundleName | アセットバンドルの名前の取得や設定ができます。 |
assetBundleVariant | アセットバンドルバリアントの取得や設定ができます。 |
assetPath | アセットのパス(読み取り専用) |
importSettingsMissing | The value is true when no meta file is provided with the imported asset. |
userData | ユーザーが自由に設定/取得できる文字列 |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
AddRemap | Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type. |
GetExternalObjectMap | Gets a copy of the external object map used by the AssetImporter. |
RemoveRemap | Removes an item from the map of external objects. |
SaveAndReimport | アセットインポーターがダーティであれば、アセットインポーターの設定を保存します。 |
SetAssetBundleNameAndVariant | アセットバンドル名とアセットバンドルバリアントを設定します。 |
SupportsRemappedAssetType | Checks if the AssetImporter supports remapping the given asset type. |
GetInstanceID | Gets the instance ID of the object. |
ToString | Returns the name of the object. |
GetAtPath | アセットのパスから AssetImporter を取得します |
GetImportLog | Retrieves logs generated during the import of the asset at path. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |