文档

Unity Engine

Unity Engine

frame

The frame index of the currently available frame in VideoPlayer.texture.
阅读时间1 分钟最后更新于 1 个月前

Definition

public long frame { get; set; }

Remarks

The frame index is 0 for the first frame of the clip, 1 for the second frame, and so on. A frame index of -1 indicates that no valid frame is available.
Note: On WebGL, because the frame rate is not known, the frame index assumes a rate of 24FPS. See VideoPlayer.frameRate.