AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class ImageGenerator

    Inheritance
    object
    AIComponent
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>
    ImageGenerator
    Inherited Members
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.saveOutput
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.outputPath
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.onSendRequest
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.onReceiveGeneratedContent
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.Api
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.SaveFolderPath
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.SaveGeneratedContents
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.Options
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.Awake()
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.InitializeSubcomponent(TextToImageOptions)
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.Generate(string)
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.GenerateAsync(string)
    AIComponent.streaming
    AIComponent.onReceiveUsage
    AIComponent.onErrorOccured
    AIComponent.Api
    AIComponent.DebugMode
    AIComponent.Logger
    AIComponent.IsProcessing
    AIComponent.IsSubcomponent
    AIComponent.Awake()
    AIComponent.SetParentComponent(AIComponent)
    AIComponent.Enqueue(Func<UniTask>)
    AIComponent.CancelAllRequests()
    AIComponent.CancelLastRequest()
    AIComponent.OnReceiveUsageData(Usage)
    AIComponent.LogInfo(string)
    AIComponent.LogWarning(string)
    AIComponent.LogError(string)
    AIComponent.IsInvalidPrompt(string)
    AIComponent.IsInvalidFile(IFile)
    AIComponent.IsInvalidFiles(IList<IFile>)
    AIComponent.NoRequiredComponent(MonoBehaviour)
    AIComponent.IsInvalidPrompt<T>(T)
    AIComponent.IsInvalidPrompt(TextPrompt, List<ChatMessage>)
    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>
    Overrides
    AIGenerative<TextToImageOptions, TextToImageProfile, string, Texture2D>.GenerateAsync(string)
    In this article
    Back to top Generated by DocFX