Video
Generate a video using a diffusion transformer model
returns GeneratedVideo
This task generates a short video clip from a text prompt or image, using models such as Veo (currently the only supported model).
The result is returned as a RawFile
, pointing to the generated video file.
Unity Limitation: VideoClip
Cannot Be Created at Runtime
VideoClip
Cannot Be Created at RuntimeUnity does not support creation of a
VideoClip
at runtime.
This means you cannot dynamically generate a VideoClip
in memory using code (e.g., ScriptableObject.CreateInstance<VideoClip>()
).
Instead, videos must be handled as files—either streamed or played using VideoPlayer.url
.
Generating a Video
// Generate from Text Prompt
RawFile videoFile = await "A cat surfing a wave"
.GENVideo()
.ExecuteAsync();
// Generate from Image
Texture2D myImage = MyImage;
RawFile videoFileFromImage = await myImage
.GENVideo()
.ExecuteAsync();
Results are saved to a temporary location unless you call .SetOutputPath()
.
Last updated