Class GENInpaintTask
Task for editing an existing image based on a text prompt and optional mask (OpenAI or Google Gemini).
Inheritance
object
GENInpaintTask
Assembly: .dll
Syntax
public class GENInpaintTask : GENImageGenerationTask<GENInpaintTask, InpaintPrompt>, IGENTask
Constructors
GENInpaintTask(InpaintPrompt)
Declaration
public GENInpaintTask(InpaintPrompt prompt)
Parameters
Fields
mask
Declaration
Field Value
Type |
Description |
Texture2D |
|
Properties
Method
Declaration
public override string Method { get; }
Property Value
Overrides
Methods
ExecuteAsyncINTERNAL()
Declaration
protected override UniTask<GeneratedImage> ExecuteAsyncINTERNAL()
Returns
Overrides
SetMask(Texture2D)
Sets the mask texture for inpainting.
The mask should be a black and white image where white areas are inpainted.
Declaration
public GENInpaintTask SetMask(Texture2D mask)
Parameters
Type |
Name |
Description |
Texture2D |
mask |
|
Returns
Implements