Search Unity

TextMeshPro & other Overrides/Apply-All breakages

Discussion in 'Prefabs' started by andyz, Mar 25, 2019.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,279
    Often a prefab instance shows changes under 'Overrides' even when there are none - for instance on a TestMeshPro component (every one of them seems to popup).
    Also the Transform elements are just a mystery, changing the size on an instance does not then get applied to the prefab by 'Apply All'. Seems once the prefab is made you can not adjust default size except by editing the actual prefab, not an instance which seems wrong.

    Unity 2018.3.8
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
  3. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,279
    Yes, I suppose it only being the 'root' helps but for UIs at least it would be helpful to be able to lock some components of the [prefab root] transform so elements can always be a fixed size (or a fixed stretch offset).
    Building a UI with prefab elements - if you suddenly want all the thumbnails to be a different size and the root transform of [your thumb] prefab sets that you have a problem don't you?
     
  4. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    For this workflow you'll have to revert the size property on all your instances (either when you create them or later) in order for them to inherit your size property from the Prefab Asset.

    After a preview build and feedback round, we decided to make it possible to revert and apply default overrides, though you need to do it on a per-property basis; they are not affected when applying or reverting the whole Prefab at once, or the entire Transform component at once. See this thread for context:
    https://forum.unity.com/threads/fee...s-can-be-applied-reverted-good-for-ui.577840/
     
  5. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,279
    hmm well a lock to prefab on root size would sure be nice on instances.

    Still a great system but complex UIs are complex - and still no style system!