Search Unity

Order of components in prefab varients changes randomly.

Discussion in '2019.3 Beta' started by YOSSI2010, Dec 17, 2019.

?

Do you guys notice these behaviour as well?

  1. Yes, it reverts

    100.0%
  2. No, I can change order of added components in variants

    0 vote(s)
    0.0%
  1. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    17
    Hi I am using Unity 2019.3.0f3 and I have encountered a weird bug regarding prefabs and component order.
    I've witnessed this bug on a few of the recent builds (even on 2019.2)
    Sometimes Unity will not allow me to reorder components, I enter prefab mode, reorder them and they get reverted.
    Even If I remove all components and add them one by one, saving each component, they would jumble again when going out of prefab mode.

    Note that this behaviour only happens in prefab variants, however all the components were added in that variant for example: I have a blender model that I use and add components to, I make a variant of that model(so changes in blender still apply) and in that prefab variant all components are marked with a "+" annotating that these are added components, yet I still can't reorder these and even if I delete these and Re-Add them they still take a random order and not the order I added them by.

    Thank you, I hope you fix it soon
     
  2. JordanSchuetz

    JordanSchuetz

    Joined:
    Jan 23, 2013
    Posts:
    7
    I'm getting this same bug, I can't find a solution,
     
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,753
  4. GameEver

    GameEver

    Joined:
    Apr 28, 2020
    Posts:
    9
  5. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    17
    Doesn't it also change the order of execution per object?
    I use the order of execution settings but as far as I remember the inspector order is also taken into consideration.
     
    Mild-Mania likes this.
  6. Tonio1308

    Tonio1308

    Joined:
    Sep 22, 2013
    Posts:
    6
    I have to mention that it is not a costemic issue.
    To us, it breaks our working process and best practices.
    When you're scrolling to find out where is the main component of your gameobject that it's lost somewhere in the middle of various secondary components, you gradually lose time each time.
    And when your process is based on components reusability and prefabs, you lose a lot of time.

    It is not a minor bug.
     
  7. crdmrn

    crdmrn

    Joined:
    Dec 24, 2013
    Posts:
    128
    It's not just cosmetic.
    When you have a complex system with a lot of prefabs you want to be able to reliably set up a components order for visual reasons; it saves a lot of time to find the values you need when you need to change them.
    I'm aware of the nested/variant prefab workflow, but a lot of times you still end up with a lot of prefabs that share a similar components setup, and you wont the components order to be consistent.
    And please, don't dismiss user feedback like they don't know what they're talking about; a lot of us use Unity for work, not just for free time fun ;)
     
  8. giraffe1

    giraffe1

    Joined:
    Nov 1, 2014
    Posts:
    233
    I got this bug in 2020.3.19f1

    It is so annoying...

    Makes me not want to work with prefab variants if I have to give up control to some random ordering system.
     
  9. GameEver

    GameEver

    Joined:
    Apr 28, 2020
    Posts:
    9
    Yes, and Unity doesn't care to fix it.
     
  10. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    183
    Bump for quality of life
     
unityunity