# Edit Mode

## Creating an Object with a Text Prompt

* In the AI prompt section, write a short text description and press "Create".
* The console will give an indication that the request was received and updates on the status of the request.
* Once ready, the object will spawn on the canvas. The object will also be added to your asset folder, and will appear in the hierarchy.

![](https://t20484704.p.clickup-attachments.com/t20484704/1cda39e8-d485-4863-95ad-6889b545fbe8/Screenshot%202024-12-09%20at%2012.51.22%20copy.png)

## API settings

There are three options for how Sloyd will process your AI creation prompt:

1. **AI texturing** - the item returned will be textured, based on what you write in your prompt. This option takes the most time to process (up to 10 seconds).
2. **AI coloring** - the item returned will be colored with PBR materials. The AI will determine the colors based on your prompt.
3. **Default color** - The AI will only take shape instructions from your prompt and will ignore information related to color and textures. The object returned will be in the 'default' colors and PBR materials assigned to the parts 'out of the box'. This has the fastest response time.

In this example we can three crates created with these different settings.

![](https://t20484704.p.clickup-attachments.com/t20484704/4027ff17-12ab-4b8a-8036-efa89cd05122/Screenshot%202024-12-09%20at%2012.51.22.png)

In the Asset Setting section you can define where Sloyd assets will be stored, you can disable auto spawning of objects and you can disable logging.

## Editing a Sloyd Object with a Text Prompt

A Sloyd object is made out of a Sloyd container and lots of parts. If you select the Sloyd container (the root level of the object), in Inspector there's an option to to edit the object with AI. Enter a short prompt and the object will be replaced with a modified object. Only the new object will appear on the canvas but all the older revisions will be available in the asset folder.

In addition to making a change a text feedback will be given indicating what change was made.

![](https://t20484704.p.clickup-attachments.com/t20484704/0c00c243-a3ae-4a1a-bf29-00c1fda08cd2/Screenshot%202024-12-09%20at%2012.02.06.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sloyd.gitbook.io/documentation/other-products/deprecated-products/unity-plugin/edit-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
