Search Unity

Question ui as a prefab is broken?

Discussion in 'UGUI & TextMesh Pro' started by mellowVtuber, Apr 3, 2021.

  1. mellowVtuber

    mellowVtuber

    Joined:
    Feb 15, 2021
    Posts:
    27
    i made one of my ui menus into a prefab, and editing it in prefab mode, the canvas is really small, with most of the ui elements being outside of it, but wherever im using the prefab it still is normal.

    But i cant do anything with the anchors because of this, and other stuff is breaking when I try to edit the prefab.

    how am i suppose to do this right?
     
  2. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    698
    Hello! Can you confirm if you're using UI Toolkit or UGUI? Do you have an UXML file describing your UI or are you adding game objects with components such as Button, Label, etc?

    If you're using UXML, it's UI Toolkit and this is the right forum, but if you're using UGUI I can move this post to the right one!
     
  3. mellowVtuber

    mellowVtuber

    Joined:
    Feb 15, 2021
    Posts:
    27
    im adding gameobjects with buttons and stuff