Search Unity

Question How to remove custom controls from UI Builder?

Discussion in 'UI Toolkit' started by DrViJ, Apr 28, 2022.

  1. DrViJ

    DrViJ

    Joined:
    Feb 9, 2013
    Posts:
    158
    Hi! I have a strange problem with my custom controls. I see that I can add them to UI Builder writing something like this:
    Code (CSharp):
    1. public new class UxmlFactory : UxmlFactory<CustomVE, UxmlTraits> { }
    But if I remove my class or rename it and restart Unity they stay presented in the controls list:
    Screenshot 2022-04-28 at 22.21.58.png

    For example, I had TabbedView and TabButton in another project. I dont have them now but I see them in this project. Can anybody please give an advise what to do to refresh list and remove incorrect controls from it?
     
    Last edited: Apr 28, 2022
  2. cpalma-unity

    cpalma-unity

    Unity Technologies

    Joined:
    Nov 30, 2020
    Posts:
    110
    Hi! The Custom Controls list should always be up to date with your custom control classes, so this might be a bug. Which Unity version are you using? Also, are you using the UI Builder package or the built-in UI Builder?