# SortAxis

SortAxis controls how the MapDrawableBatch performs culling. This value controls how culling is performed when the MapDrawableBatch is drawn. If SortAxis is set to SortAxis.X, then the map will cull tiles from the left and right of the camera visible bounds. Otherwise, if SortAxis is set to Y, then the map will cull tiles from above and below the camera visible bounds. This value is automatically set when the map is created according to whether the map is wider (SortAxis.X) or taller (SortAxis.Y). Setting SortAxis to SortAxis.None results in the map not being culled at all when rendered.


---

# 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://docs.flatredball.com/flatredball/tiled-plugin/flatredball-tilegraphics-mapdrawablebatch/sortaxis.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.
