Search Unity

How to Reload UI

Discussion in 'UI Toolkit' started by l33t_P4j33t, May 9, 2020.

  1. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    edit: nvm found it, its panelRenderer.RecreateUIFromUxml();

    how do you reload the ui after changing the uxml file?
    the way i change from main menu to settings menu is by setting panelRenderer.uxml and reenabling the panel renderer, but that doesn't seem right

     

    Attached Files:

    Last edited: May 9, 2020