Search Issue Tracker


Fixed in 2023.1.0a23



Found in


Issue ID




commandBuffer.SetRenderTarget will only bind the first slice when sliceID is set to -1



How to reproduce:
1. Open the user-attached project
2. Open the "SampleScene" Scene
3. Enter Play Mode
4. Select the "Quad" GameObject in the Hierarchy
5. Change the Clear Color into anything in the "Test Blit" Script Component
6. Change the Slice field to any amount
7. Expand the Material Component and raise or lower the Slices count

Expected result: Only 1 color is on the Quad or switches between multiple colors
Actual result: When the Slices count in the Material goes above 1 the Color disappears/resets

Reproducible with: 2020.2.0a19, 2020.3.40f1, 2021.3.11f1, 2022.1.18f1, 2022.2.0b9, 2023.1.0a13
Not reproducible with: 2019.4.40f1, 2020.2.0a18

Reproduced on: macOS Monterey 12.6 (Intel)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.