Class PixelAnimationRequest
Request for generating animated pixel-art frames.
Inheritance
PixelAnimationRequest
Implements
Inherited Members
PixelArtRequest<PixelAnimationRequest, ImagePrompt, IPixelArtAnimationOptions>.SetNoBackground(bool)
Namespace: Glitch9.AIDevKit.PixelArt
Assembly: Glitch9.AIDevKit.PixelArt.dll
Syntax
public sealed class PixelAnimationRequest : PixelArtRequest<PixelAnimationRequest, ImagePrompt, IPixelArtAnimationOptions>, IGenerativeRequest
Constructors
| Edit this page View SourcePixelAnimationRequest(ImagePrompt)
Creates a pixel-art animation request.
Declaration
public PixelAnimationRequest(ImagePrompt prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| ImagePrompt | prompt |
Properties
| Edit this page View SourceFallbackModel
Declaration
protected override string FallbackModel { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceReferenceImage
Required. Reference image to animate
Declaration
public Texture2D ReferenceImage { get; set; }
Property Value
| Type | Description |
|---|---|
| Texture2D |
RequestType
The endpoint type for this
Declaration
public override RequestType RequestType { get; }
Property Value
| Type | Description |
|---|---|
| RequestType |
Overrides
Methods
| Edit this page View SourceExecuteAsyncInternal()
Executes the actual task logic. Must be implemented in derived classes.
Declaration
protected override UniTask<Generated<IImageAsset>> ExecuteAsyncInternal()
Returns
| Type | Description |
|---|---|
| UniTask<Generated<IImageAsset>> |
Overrides
| Edit this page View SourceSetReferenceImage(Texture2D)
Sets reference image.
Declaration
public PixelAnimationRequest SetReferenceImage(Texture2D referenceImage)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | referenceImage |
Returns
| Type | Description |
|---|---|
| PixelAnimationRequest |