Search Issue Tracker
By Design
Votes
0
Found in
2017.4
2018.1
2018.3
2019.1
2019.2
2019.3
2020.1
2020.2
2020.2.0a5
Issue ID
1234274
Regression
No
[2D] "Material doesn't have a texture property '_MainTex'" error is thrown when "Default-Skybox" Material assign to Image
When "Default-Skybox" Material assigned to Image in the Inspector following error is thrown:
"Material doesn't have a texture property '_MainTex'
UnityEngine.Canvas:SendWillRenderCanvases()"
Steps to repro:
1. Create a new project
2. Hierarchy > Create > UI > Image
3. Inspector > Image > Material > Default-Skybox
Actual Result:
Material doesn't have a texture property '_MainTex error thrown on assigning "Default-Skybox" Material to Image
Expected Result:
No error is thrown in the console
Occurring on:
2020.2.0a5, 2020.1.0b4, 2019.3.8f1, 2019.2.13f1, 2019.1.11f1, 2018.4.14f1, 2018.1.0f2, 2017.4.27f1
Environment:
Windows 10 & macOS 10.14
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note:
Material needs to have _MainTex property for Image component to work