Search Issue Tracker
Won't Fix
Under Consideration for 2021.3.X, 2022.3.X, 2023.2.X
Votes
0
Found in
2021.3.36f1
2022.3.21f1
2023.2.13f1
2023.3.0b10
6000.0.0b11
Issue ID
UUM-65482
Regression
No
"_MainTex" reference does not change when selecting a different image within a Material in URP
How to reproduce:
1. Open the “ShaderGraphMainTexIssue” project
2. Open the “SampleScene”
3. In the Hierarchy window select the “Square” GameObject
4. In the Inspector window locate the “Shader Graph_New Shader Graph” Material Component
5. Expand the “Surface Inputs” section
6. Change the image for the “MainTex” field
Expected result: The “MainTex” field is changed with the chosen image
Actual result: The “MainTex” field stays the same
Reproduced with: 2021.3.36f, 2022.3.21f1, 2023.2.13f1, 2023.3.0b10
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
1. Reproduced with URP
2. Not reproduced with HD RP
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Thanks for the report, after checking with the developer, it is confirmed that _MainTex is reserve for internal use and not meant to be modifiable.