Search Unity

Question Shader Graph shader does not work on Nintendo Switch - how to debug?

Discussion in 'Shader Graph' started by Xarbrough, Oct 21, 2019.

  1. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,188
    I'm testing Shader Graph in our current project on Nintendo Switch. The shaders look fine in the Editor, but when building to device, all materials using the shader are not showing (invisible) and the following warning is logged:


    Is this something I can debug and fix myself or do I need to report a bug via the Bug Reporter Tool?
     
    ElnuDev likes this.
  2. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,188
    My team finally found the issue: We were using property names and accidentally added a double underscore to the variable name like "__MyProperty" which causes the shader to not compile on Switch, but on other platforms apparently.
     
    ElnuDev and whoisj like this.
  3. whoisj

    whoisj

    Joined:
    Jan 4, 2018
    Posts:
    26
    Good to know! Thanks for the info