Player build logs a "material with shader doesn't have a '_MainTex' property" error when instantiating a specific amount of specific prefabs
Unity: Shader System
Open
6.5.X
6.4.X
6.3.X
6.0.X
2022.3.X
Won't Fix
6.2.X
6.1.X
Unity 6000.2 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Cancelling: the 6000.1 version has reached its end of life. If you need additional fixes, please upgrade to a newer Unity version.
Reproduction steps:
1. Open the attached "IN-97465" project
2. Open the “MainScene” Scene
3. In the Hierarchy window expand the “==== MANAGERS ====” GameObject
4. Select the “Game Manager” GameObject
5. In the Inspector window “Spawn Characters” script component change the “Num Characters To Spawn” property value to 3
6. Build and run the project
7. In the built project click “Start”
8. Observe the console in the built projects bottom left corner
Expected result: No errors are logged
Actual result: “_mainTex” is expected error is logged
Reproducible with: 2022.3.7f1, 2022.3.61f1, 6000.0.48f1, 6000.1.0f1, 6000.2.0a10
Could not test with: 2022.1.0a1, 2022.2.0a2 (Multiple method not found errors)
Reproducible on: Windows 11, macOS 10.15 (Intel) (User)
Not reproducible on: No other environments tested
Prioritise and Follow this issue
Have a workaround or additional info about this issue?