Documentation

Unity Spark

Open Unity Spark

Unity Spark

Create a custom tool

Ask the assistant to create a project-specific window that automates a task you repeat while you create and test your game.
Read time 2 minutesLast updated 3 hours ago

Describe the tool you want, and the assistant creates it for your project. Because Plan mode doesn't change your project, the assistant can create custom tools only in Agent mode. For more information about what custom tools are, refer to Introduction to custom tools.

Prerequisites

Make sure the conversation is in Agent mode. For more information, refer to Agent mode and Plan mode.

Ask the assistant for a custom tool

To create a custom tool, describe the tool you want in the Chat window. For example, enter one of the following prompts:
  • Give me a button to respawn the player.
  • Add a panel that lists my enemies, with their health and a button to delete each one.
  • Make a checklist window for the tasks left in this level.
The new tool opens immediately. If you're not sure which tool you need, describe the problem instead, for example,
setting up enemies takes forever
. The assistant suggests two or three tools for you to choose from.
For the controls a custom tool can include, refer to Custom tool controls.
Most custom tools are windows, but you can also ask the assistant to place a tool inside the Hierarchy or Inspector window, or to float it over the Scene view.
A custom tool window named Enemies, docked as a tab next to the Hierarchy and Assets windows and the Tweaks window. The tool lists five bots, each with a speed field and a Delete button, and has a Refresh button.

A custom tool that lists the enemies in the open scene.

Additional resources