Prefixes
To get the most out of IntelliSense when using the AI Dev Kit, the following prefixes are designed to make autocomplete clean, fast, and intuitive.
Try to remember and follow these naming conventions:
GEN
— Prefix for All Task Creators
GEN
— Prefix for All Task CreatorsThese are extension methods that can be called directly on known objects to start an AI generation task.
1. Prompt-based Pattern
Called from prompt-like data types:
string
Text/Content Generation Image Generation Speech Generation (TTS) Sound FX Generation Video Generation
AudioClip
Transcript Generation (STT) Voice Change Audio Isolation
Texture2D, Sprite
Text/Content Generation (Vision) Image Edit (Inpaint) Image Variation
ChatSession
Chat
2. Target-based Pattern
Called from UnityEngine.Object
— automatically applies the result to the target:
Text
UnityEngine.UI.Text UnityEngine.TextMesh TMPro.TMP_Text TMPro.TextMeshProUGUI TMPro.TextMeshPro
Text Generation Transcript Generation (STT)
Image / Texture
UnityEngine.UI.Image UnityEngine.UI.RawImage UnityEngine.SpriteRenderer
Image Generation Image Edit (Inpaint) Image Variation
Audio
UnityEngine.AudioSource
Speech Generation (TTS) Sound FX Generation Voice Change Audio Isolation
Set
— Prefix for All Configuration Options
Set
— Prefix for All Configuration OptionsUse this to configure task parameters such as model, output count, output path, and advanced options like reasoning, web search, or voice settings.
On
— Prefix for All Streaming Callbacks
On
— Prefix for All Streaming CallbacksUse these methods to attach real-time callbacks for streamed results, such as receiving text tokens, tool calls, or error handling.
Append
— Prefix for Task Sequences
Append
— Prefix for Task SequencesThese prefixes follow a consistent pattern to maximize IntelliSense usability and make task flows easy to read and construct.
Tip: Just type GEN
, Set
, or On
and let IntelliSense show you what’s possible.
Last updated