Description 描述
A container for video data.
A VideoClip stores the video portion of a movie file using a codec that is appropriate for the target platform. VideoClips are referenced by VideoPlayers to play videos.
Properties 属性
| audioTrackCount | Number of audio tracks in the clip. | ||
| frameCount | The length of the VideoClip in frames. (Read Only). | ||
| frameRate | The frame rate of the clip in frames/second. (Read Only). | ||
| height | The height of the images in the video clip in pixels. (Read Only). | ||
| length | The length of the video clip in seconds. (Read Only). | ||
| originalPath | The video clip path in the project's assets. (Read Only). | ||
| pixelAspectRatioDenominator | Denominator of the pixel aspect ratio (num:den). (Read Only). | ||
| pixelAspectRatioNumerator | Numerator of the pixel aspect ratio (num:den). (Read Only). | ||
| sRGB | Whether the imported clip contains sRGB color data (Read Only). | ||
| width | The width of the images in the video clip in pixels. (Read Only). |
Public Methods 公共方法
| GetAudioChannelCount | The number of channels in the audio track. E.g. 2 for a stereo track. | ||
| GetAudioLanguage | Get the audio track language. Can be unknown. | ||
| GetAudioSampleRate | Get the audio track sampling rate in Hertz. |
Inherited Members 继承成员
Properties 属性
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? | ||
| name | The name of the object. |
Public Methods 公共方法
| GetInstanceID | Returns the instance id of the object. | ||
| ToString | Returns the name of the object. |
Static Methods 静态方法
| 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. | ||
| FindObjectOfType | Returns the first active loaded object of Type type. | ||
| FindObjectsOfType | Returns a list of all active loaded objects of Type type. | ||
| Instantiate | Clones the object original and returns the clone. |
Operators 运算符
| bool | Does 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. |