Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Shader selection problem

Discussion in 'Editor & General Support' started by darkcosta, Dec 29, 2019.

  1. darkcosta

    darkcosta

    Joined:
    Aug 22, 2013
    Posts:
    9
    Hello everyone,
    i have a problem when selecting a shader in the material editor.
    Everytime i try to open the dropdown menu the editor freezes, it takes a lot of time to open it.

    How do i fix it?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,795
  3. Wowmaniac

    Wowmaniac

    Joined:
    Jun 27, 2014
    Posts:
    4
    I'm having this problem now in 2020.2 and I'm going to file a bug report. I've tried removing shaders and random things but the problem persists.

    The Editor hangs for 5-10 secs when clicking select shader menu.. this will repeat if I keep clicking.
     
    ROBYER1, dchen05 and MohammadAliYP like this.
  4. abegue

    abegue

    Joined:
    Jan 28, 2019
    Posts:
    24
    Got the same issue (I have to wait between 1 and 2 minutes). Fixed it by deleting Library (and Temp, just in case).

    Got issue on Unity 2019.3.0f1

    Edit: new update! After more investigating, I saw that my Library/ShaderCache.db was ~20Go. Not sure how it reached that amount but deleting and restarting Unity fixed the issue.
     
    Last edited: Mar 26, 2021
  5. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,444
    Me too, is there no way the shader cache can be removed automatically or overwrite itself? Using Unity 2020.3.0f1 and Shader graph + URP here