Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug (Case 1294683) VolumeComponent parameters are in random order

Discussion in '2020.2 Beta' started by Hyp-X, Nov 23, 2020.

  1. Hyp-X


    Jun 24, 2015
    Parameters in VolumeComponent appear in a seemingly random order.
    This looks like a regression in the new version of SRP Core forced by 2020.2

    A ParameterSorter was added to VolumeComponentEditor.cs which gives 0 value to all parameters by default, then calls a Sort which puts "equal" parameters in undefined order.

    Here's the blame for VolumeComponentEditor.cs (look for ParameterSorter):

    This is the PR where the change landed:

    I didn't dig further to find the actual original change.
    LeonhardP and Peter77 like this.