Search Issue Tracker
Fixed
Fixed in 2020.3.45f1, 2021.3.17f1, 2022.2.3f1, 2023.1.0a25
Won't Fix in 2022.1.X
Votes
0
Found in
2020.3.42f1
2021.3.15f1
2022.1.23f1
2022.2.0f1
2023.1.0a20
Issue ID
UUM-20416
Regression
No
‘[…] doesn't have a texture property '_MainTex’’ error when using Gizmos with [MainTexture] attribute
Steps to reproduce:
1. Open the attached project "TestingProject.zip" and "SampleScene.unity" Scene
2. Make sure the Scene view is visible
3. Click Quad in the Hierarchy and observe the error
4. Click on Quad2 in Hierarchy and observe the selection outline is drawn around (unused) _MainTex texture
Expected: no errors in the console when selecting Quad and the selection outline is drawn around _BaseMap texture when clicking on Quad2
Actual: Error "Material 'CustomMaterial' with Shader 'Unlit/NewUnlitShader' doesn't have a texture property '_MainTex'" appears in the console on selecting Quad and clicking on Quad2 selection outline is drawn around (unused) _MainTex texture
Reproducible on: 2020.3.42f1, 2021.3.15f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a20
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
- [Linux] Floating windows do not keep their size after restarting the Editor
- .framework plugin is mistakenly treated as a directory when building for Universal Windows Platform
Resolution Note (fix version 2023.1.0a25):
Fixed in: 2023.1.0a25
Resolution Note (2022.1.X):
Backport to branch 2022.1 has stopped as it reached end of life