Class ImageGenerator
Inheritance
object
ImageGenerator
Inherited Members
Namespace: Glitch9.AIDevKit.Components
Assembly: .dll
Syntax
public class ImageGenerator : AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>
Methods
GenerateAsync(string)
Asynchronously generates output based on the provided input prompt. This method should be overridden in derived classes to implement the actual generation logic. It returns a UniTask that resolves to the generated output. The onReceiveGeneratedContent event is triggered with the generated output once the task completes.
Declaration
public override UniTask<Texture2D> GenerateAsync(string promptText)
Parameters
Type | Name | Description |
---|---|---|
string | promptText |
Returns
Type | Description |
---|---|
UniTask<Texture2D> |