Search Unity

UI Builder shows UI correclty but game view does not

Discussion in 'UI Toolkit' started by herkip, Sep 23, 2021.

  1. herkip

    herkip

    Joined:
    Dec 21, 2013
    Posts:
    30
    After switching computers, this is happening. Other computer had dedicated graphics card this one does not, This is the only difference.

    upload_2021-9-23_22-45-37.png
     
  2. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    Can you check if your PanelSettings has the Theme Style Sheet set?
     
  3. herkip

    herkip

    Joined:
    Dec 21, 2013
    Posts:
    30
  4. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    Can you try right clicking and selecting "Reimport" on the UnityDefaultRuntimeTheme asset? There's a current bug that it fails to load correctly (already being fixed).
     
  5. herkip

    herkip

    Joined:
    Dec 21, 2013
    Posts:
    30
    I tried reimport, and ven reimport all nothing. I am getting those errors. And I am using Unity 2020.3.19f

    upload_2021-9-23_23-38-58.png
     
    Last edited: Sep 23, 2021
  6. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    This is still looking like the issue with loading the default theme style sheet properly, but other than reimporting the asset there's not much I can suggest. Maybe recreating the Default Runtime Theme Style Sheet and assigning the new one to the PanelSettings, but if you had modified the theme that would mean losing those changes :oops:
     
  7. herkip

    herkip

    Joined:
    Dec 21, 2013
    Posts:
    30
    I got this working. Thank you @JuliaP_Unity

    Step I forgot to. Was when you reimport you have to swap the default style sheet in the Theme Style sheet.

    upload_2021-9-25_12-37-22.png
     
  8. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    Thanks for letting me know, but that doesn't sound right to me. You shouldn't have to do that. If it's working for you that's great, but using the asset should work as well.