Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    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):
    https://github.com/Unity-Technologi...s.core/Editor/Volume/VolumeComponentEditor.cs

    This is the PR where the change landed:
    https://github.com/Unity-Technologies/Graphics/pull/202

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