|
From time to time when writing shaders with CG language in it I get normal errors like syntax errors or some others that everyone makes during normal coding, but sometimes Unity stops recompiling my shaders and keeps a older version compiled ("Open Compiled Shader" option) and does not recompile it until I erase completely the shader and the material assigned and create it from zero with the same shader code. Is there a way to force a recompilation of the shader? Maybe erasing something in the Assets folder or any other place?
(comments are locked)
|
|
Right click the file and Select "Reimport", this is the solution provided by the Unity team.
(comments are locked)
|
|
Does this happen when you open the file from the text editor's recent items menu, or when you open the file from the desktop? Unity doesn't always track files if they weren't opened from within Unity. Try closing open shader files and reopening them from Unity. I did opened them from Unity, the only thing that does the trick according to the Unity team themselves is to right click the shader file in Unity and "Reimport" them.
Feb 10 '10 at 03:46 PM
Kelvin 2
(comments are locked)
|
