Multimodal Input¶
Attach MultimodalInputExample and AstralRuntimeInitializer to a GameObject.
Assign a readable RGBA32 texture for image calls and an accessible AudioClip
for audio calls. Set mediaProjectorPath to the projector or encoder GGUF used
by the selected model; the mock backend accepts the default mock paths.
RunImageGenerationfeeds the prompt and caller-owned texture bytes.RunAudioGenerationcopies interleaved clip samples into a temporaryNativeArray<float>and feeds explicit channel and sample-rate metadata.EmbedImageenqueues a multimodal embedding, creates a generic request reference, collects into a caller-owned vector, and reports terminal status.
Every path checks model capabilities before calling the media API. Texture and audio memory remain valid until the synchronous feed or collect operation returns.