> For the complete documentation index, see [llms.txt](https://ss3d.gitbook.io/systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ss3d.gitbook.io/systems/tilemaps/adding-new-items-and-objects.md).

# Adding new items & objects

### Creating ScriptableObjects

To add a new item or object to the tilemap system, a new scriptableobject needs to be created.

<figure><img src="https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2FFVwF4pg7JB1ESD5ZrySO%2Fimage.png?alt=media&amp;token=eb648078-8c1b-4850-aba8-492c810ee063" alt=""><figcaption><p>Right click in the Unity Editor to create a new object</p></figcaption></figure>

### Location

Make sure to save the item/tile ScriptableObjects under the corresponding "Content/Data/TileMap/Resources/" folder

### Details

The following information can be filled in for a TileObjectSo:

#### Tile objects

* Name String - describes the name of the object
* Prefab - which prefab to spawn
* Icon - Icon which is used by the creator and construction interface
* Layer - which layer the item should be put in
* Generic Type - Generics types are used to categorize objects on the same layer. Used by the adjacency connector to connect walls for example
* Specific Type - Specific types are used to specify the material that the object is made of. For example used by carpets to ensure that they don't connect to other floors&#x20;
* Width - width of the object. Used for multi-tile objects
* Height - height of the object. Used for multi-tile objects

<figure><img src="https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2Fc1Pz6nhIsQevxHf9r8rD%2Fimage.png?alt=media&amp;token=996c9cb3-cf69-466b-a702-28294e8079af" alt=""><figcaption><p>Details to fill in</p></figcaption></figure>

#### Items

Items can be added in a similar way:

<figure><img src="https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2Fqr4YT74HjtfnsrAyL6PS%2Fimage.png?alt=media&amp;token=3c817d8d-71c5-4345-bf2f-6f2d9289f2b5" alt=""><figcaption><p>Items follow the same approach</p></figcaption></figure>

{% hint style="warning" %}
Make sure the Name String is unique. Not doing so will create issues during loading & saving.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ss3d.gitbook.io/systems/tilemaps/adding-new-items-and-objects.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
