Search Unity

Bug Reference Naming can cause Crash on Device

Discussion in 'Shader Graph' started by FlashMuller, Dec 16, 2020.

  1. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    451
    Hey all, hope this helps:
    I had a shader graph (URP, PBR) with a Texture2D Note. I exposed it and named the reference "main". This caused the app to crash on an Android Device as soon as a level using this shader was loaded - Editor remained functional however. Changing the name to something else got it back working.
    If certain names can cause problems(at least that's what I suppose?), this should be exposed to the user or forbidden.
    Best wishes,
    Daniel