Search Issue Tracker

Fixed in 2021.1.X



Found in





Issue ID




Error assigning 3D texture to 2D texture property '_MainTex' when using a Texture3D and a Shader from the Unity Manual



How to reproduce:
1. Open user-submitted project (
2. Create a new Cube GameObject
3. Assign the Cube the material '3D'
4. Left-click in the Scene View window

Expected result: no errors are thrown
Actual result: "Error assigning 3D texture to 2D texture property '_MainTex': Dimensions must match" errors are thrown

Reproducible with: 2018.4.0f1, 2018.4.28f1, 2020.2.0b1, 2020.2.0b11, 2021.1.0a4
Not reproducible with: 2019.4.0f1, 2019.4.14f1, 2020.1.12f1, 2020.2.0a21

  1. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0a8

Comments (2)

  1. D008959074a128cf7145e9259c65d613?d=mm


    May 08, 2021 09:03

    Hi Unity team,

    could you merge it back at least to the latest version for 2018, 2019, 2020? Or is this issue not available on those latest versions? For us developers every major Unity upgrade is a pain and lot of work, I need at least 1 Month psychology treatment after... (You know, lot of assets must support that version, often fails like substance, new bugs, and so on.) I'm working in a serious company, we do merge back bugfixes at least for major releases. Else our clients could say, you are not able to bring out a single stable release.

    Helmut K.

  2. E54b7af50717acc5a97fd83cf2b1cb00?d=mm


    Feb 24, 2021 17:35

    This is not fixed. Seeing it in 2020.2.4

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.