Add context to a prompt
Mention objects, components, and assets, drag items into the Chat window, and attach images and files so the assistant knows what you're referring to.
Read time 2 minutesLast updated 3 hours ago
Give the assistant the exact objects, assets, and files you're referring to. For more information about how the assistant uses context, refer to Introduction to assistant context.
Mention objects, components, and assets
To point the assistant to an object, component, or asset in your scene:
- Open the Chat window.
- In the prompt box, enter or select Add context (@).
@ - Search for the item, then select it.
The picker has the following sections: Current selection, Components of object, Scene hierarchy, and Project assets. Project assets appear after you start typing. Each section lists up to 25 results, so keep typing to narrow the list.
When you select an item from , Unity Spark puts the item's name in your message and adds the item as a context item over the text box, for example, When you select an item from Add context, Unity Spark adds only the context item.
@Make @Door open when @Player gets close.The assistant can then read the item's properties, components, and scripts.
Drag objects in
Drag an object from the Hierarchy window, or an asset from the Project window, onto the prompt box in the Chat window. While you drag over the prompt box, it displays . You can also drop files on the prompt box to attach them, or drop text.
Drop to add contextAttach images and files
To give the assistant images and files from your computer:
- Open the Chat window.
- Do one of the following:
- In the prompt box, select Attach file…, then select a file.
- Paste an image from the clipboard.
- Drag files onto the Chat window.

An image attached to a message in the Chat window.
You can attach several files of any type at once. Attachments work as follows:
- The assistant reads images directly. Attach images such as concept art, a reference screenshot, or a mock-up of your UI.
- It opens other files when it needs them. For very long files, it reads only about the first 100,000 characters.
- Unity Spark doesn't keep attachments if you reload the page before you send the message.