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

Scrollview scroller/bar styling bug?

Discussion in 'UI Toolkit' started by qwert024, Jan 23, 2022.

  1. qwert024

    qwert024

    Joined:
    Oct 21, 2015
    Posts:
    43
    Hello!
    I am using Scrollview in my UI. (Unity 2021.1.28 + UI Toolkit & UI Builder package 1.0.0-preview.18)
    The default scroller/bar in UI Builder window looks good.
    in-builder_expected.jpg

    However, the scroller/bar style becomes different in game view.
    in-game_result.jpg

    I was wondering how to fix this
    I will appreatiate if anyone could shed some light on this!
     
  2. cpalma-unity

    cpalma-unity

    Unity Technologies

    Joined:
    Nov 30, 2020
    Posts:
    90
    Hello! The GameView will always use the runtime theme set in your PanelSettings asset. On the other hand, the builder can show different previews depending on the selected theme. Here you can select the runtime theme so you have the same preview as the GameView.
     

    Attached Files:

  3. qwert024

    qwert024

    Joined:
    Oct 21, 2015
    Posts:
    43
    Many thanks! will look into it soon