VideoClipImporter
VideoClipImporter lets you modify VideoClip import settings from Editor scripts.
Read time 5 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: AssetImporter
public class VideoClipImporter : AssetImporter
Remarks
See the Movie File Format Support Notes section in the VideoPlayer class documentation for supported movie file formats and encoding guidelines.
Properties
Property | Description |
|---|---|
| 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) |
Methods
Method | Description |
|---|---|
| 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. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |