Documentation

Unity Spark

Open Unity Spark

Unity Spark

Introduction to the AI assistant

Understand how the Unity Spark assistant works, from your request in the Chat window to the changes, playtests, and controls it leaves you, and how its features fit together.
Read time 4 minutesLast updated 3 hours ago

The Unity Spark assistant creates and changes your game from the requests you enter in the Chat window. It reads your project, makes changes, checks its work, and can create controls that help you tune the result. The following sections explain how those parts fit together and link to the pages with the details.

Talk to the assistant in the Chat window

You talk to the assistant in the Chat window. Each conversation is a separate thread, and every conversation works on the same project. Start a new conversation for each new feature, so the assistant keeps its focus. Unity Spark saves your game in the project, not in the conversation, so you don't lose any work when you start a new one.
For a description of each control, refer to Chat window reference. To run built-in actions, such as starting a new game or a playtest, refer to Slash commands.

Context the assistant uses

Each time it responds to a prompt, the assistant works from the following context.

Context

Description

Your projectThe scene, scripts, and assets in your project.
The game briefA summary of what your game is, how the player wins and loses, and its visual style. Unity Spark saves the brief with the project, so every conversation can read it. The assistant records your decisions in it as you make them. Refer to Game design.
What you addObjects, scripts, assets, files, and drawings that you add to a message. Refer to Context and files.
A conversation can hold only a limited amount of context, so long conversations lose details from their start. The game brief keeps the important decisions available to every conversation.

Agent mode, Plan mode, and permissions

The mode of the conversation decides what the assistant does with your request:
  • In Agent mode, the assistant changes your game directly.
  • In Plan mode, the assistant proposes a plan, and nothing changes until you approve it.
The assistant asks your permission before some actions, such as restoring the project to an earlier point or generating an asset that costs credits. For the full list, refer to Permission requests.
The assistant doesn't ask before it deletes objects in your scene, so if you don't want a change, undo it. For more information, refer to Agent mode and Plan mode.
While the assistant works, it appears in the scene as an agent, and Unity Spark marks the objects it changes. To follow along, refer to Follow agent. The assistant works inside your browser tab, so to keep it running at full speed while you use other applications, refer to Background work and the Scene pop-out.

Playtests of the assistant's changes

After the assistant creates something in Agent mode, it can playtest the change. Depending on the Playtest setting, it gives you a checklist of goals to play through, plays the game itself and fixes what it finds, or skips the playtest. For more information, refer to Playtests.

Choose a control for the assistant to create

The assistant can create controls that you keep using after its turn ends.

Control

Use it to

TweaksAdjust values in your game, such as jump height or enemy speed, with sliders, toggles, and color pickers, including while the game runs.
Custom toolsRepeat a task without asking the assistant again, with a window of buttons, lists, and controls made for your project.
To change a value once, ask the assistant. To adjust a value many times while you test, ask for a tweak. To repeat a whole task, ask for a custom tool.

Ways to undo the assistant's changes

If you don't like a result, you can undo the assistant's last turn, retry or rewind a turn, or restore the whole project to an earlier point. Some of these options affect everyone working on the project. For more information, refer to Undo and restore changes.

Credit use in conversations

The assistant uses Unity AI credits, which are allocated to your organization. The Chat window shows the credits each conversation has used. For more information, refer to Unity AI credits.

Additional resources