Class ImageGenerator
- Namespace
- Glitch9.AIDevKit.Components
public class ImageGenerator : AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>
- Inheritance
-
objectImageGenerator
- Inherited Members
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.
public override UniTask<Texture2D> GenerateAsync(string promptText)
Parameters
promptTextstring
Returns
- UniTask<Texture2D>