Unity Issue Tracker - "_MainTex" reference does not change when selecting a different image within a Material in URP
Closed
UUM-65482
"_MainTex" reference does not change when selecting a different image within a Material in URP
Unity: 2D
Won't Fix
6.0.X
2023.3.X
2023.2.X
2022.3.X
2021.3.X
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.
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