Documentation

Unity Engine

Unity Engine

GetPreviewTexture()

Returns a texture with the transcoded clip's current frame. Returns frame 0 when not playing, and frame at current time when playing.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public Texture GetPreviewTexture()

Returns

Type

Description

TextureTexture containing the current frame.