Search Unity

Question Regarding the use of Materials in Images:

Discussion in 'Editor & General Support' started by jupiter911, Mar 25, 2023.

  1. jupiter911

    jupiter911

    Joined:
    Mar 8, 2018
    Posts:
    5
    Greetings!
    When I add an Unlit shader Material created with ShaderGraph to my UI-Image, it looks like this in Game tab:
    QQ截图20230325130827.png
    However, it appears normal in Scene.
    If I switch the Shader to Lit, it displays correctly in Game, but strange shadows are added in Scene tab:
    QQ截图20230325130735.png
    What could be causing this issue?
    And, it seems that PostProcess does not affect UI?

    PS. I need to draw some program-generated lines in UI using Images. How can I achieve this?

    Thanks for your help。
     
  2. jupiter911

    jupiter911

    Joined:
    Mar 8, 2018
    Posts:
    5
    I cant understand why it happend?