> For the complete documentation index, see [llms.txt](https://docs.playground.ooo/degen-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.playground.ooo/degen-engine/guides/trait-templates/create-a-new-trait-template/setting-render-order-for-traits.md).

# Setting Render Order for Traits

### How Render Order Works

Render Order is determined by an integer value assigned to each Trait. The lowest value signifies the Trait to be rendered first, with subsequent Traits rendered in ascending order.

For example, if a Trait has a Render Order value of 1, it will appear beneath any Traits with a Render Order value of 2 or higher.

When generating an NFT, considering the Traits' render order is essential, as it affects the NFT's overall composition. This is particularly important for NFTs with numerous Traits or when the Traits' order is crucial for conveying a specific message or meaning.

### Render Order in Different Metadata Renderers

It's important to note that Render Order is specific to the Metadata Renderer used to create the NFT. Various renderers may have distinct rules for calculating and applying Render Order.

For instance, our Metadata Renderer utilizes Render Order to establish the layering of Traits in the final image or media asset. As new Traits are added or burned, the Renderer updates the NFT to ensure the accurate media asset is displayed.

Users can also create their own Metadata Renderer to render more complex media assets. In this case, they can establish their own rules for calculating and applying Render Order.


---

# 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://docs.playground.ooo/degen-engine/guides/trait-templates/create-a-new-trait-template/setting-render-order-for-traits.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.
