Search Issue Tracker

Fixed

Votes

0

Found in

5.5.0b10

Issue ID

845464

Regression

Yes

Shader upgrader fails if skipping Unity versions

Shaders

-

- Import Edy's Vehicle Physics project from the Asset Store in an older Unity version (in my case Unity 5.5.0b5)
- Open the project in a more recent Unity version (in my case Unity 5.5.0b10)
- Open scene "The City - Simple Scene" and run it in the editor
- The following error is printed in the console:
"Shader error in 'Custom/EVP Tire Marks': unrecognized identifier 'UNITY_INSTANCE_ID' at line 81 (on d3d11)

Compiling Vertex program with DIRECTIONAL
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA
"
If opening the project in consecutive Unity versions (b8, b9, 10, etc) the error does not show up. This means that the shader upgrader tool only works properly if upgrading the project going through each consecutive Unity build

Reimporting the shader manually fixes the issue

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.