Skip to content

VideoPreviewGenerator

ClassAssetInventoryAssetInventory.Editor
public static class VideoPreviewGenerator

No description is available for this type.

public static Task<Texture2D> Create(VideoClip videoClip, int size = 128, int frameCount = 4, Action<VideoClip> onSuccess = null)

No description is available for this member.

Parameters

Name Type Description
videoClip UnityEngine.Video.VideoClip
size System.Int32
frameCount System.Int32
onSuccess System.Action{UnityEngine.Video.VideoClip}

Returns

System.Threading.Tasks.Task{UnityEngine.Texture2D} — No return description is available.

public static Task<Texture2D> Create(string file, int size = 128, int frameCount = 4, Action<VideoClip> onSuccess = null)

No description is available for this member.

Parameters

Name Type Description
file System.String
size System.Int32
frameCount System.Int32
onSuccess System.Action{UnityEngine.Video.VideoClip}

Returns

System.Threading.Tasks.Task{UnityEngine.Texture2D} — No return description is available.