# ArgumentException: TilemapRenderer does not support multiple sorting layers. Only the first sorting layer will be used.

- **ID:** `unity/tilemap-rendering-corruption`
- **Domain:** unity
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 90%

## Root Cause

TilemapRenderer component is assigned to a GameObject that belongs to multiple sorting layers, which is not allowed.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 2021.3.32f1 | active | — | — |
| 2022.3.15f1 | active | — | — |

## Workarounds

1. **Ensure the Tilemap GameObject has only one sorting layer: remove any additional SortingGroup components or set them to None.** (95% success)
   ```
   Ensure the Tilemap GameObject has only one sorting layer: remove any additional SortingGroup components or set them to None.
   ```
2. **If using a parent SortingGroup, move the TilemapRenderer to a child GameObject and sort via the parent only.** (88% success)
   ```
   If using a parent SortingGroup, move the TilemapRenderer to a child GameObject and sort via the parent only.
   ```

## Dead Ends

- **** — The sorting layer assignment is persistent in the scene; toggling doesn't change the actual sorting layers. (95% fail)
- **** — The new Tilemap inherits the same sorting layer settings from the TilemapRenderer preset; issue persists. (70% fail)
- **** — The error is about multiple sorting layers on the same GameObject, not the specific layer value; 'Default' may still conflict if another component sets a different layer. (50% fail)
