How to reproduce:
1. Unzip the “VfxAttribTest-2022“ project
2. Open it in the 2022.3 LTS
3. Observe the value of the Random (Uniform) Set Attribute in the “Test.vfx“ asset
4. Close the project and open it with Unity 6
5. Observe the Set Attribute of the “Test.vfx“ asset
Expected result: The Random setting stays set to Uniform and the “Max”/”B” properties value is transferred without changes
Actual result: After the migration the Set Attributes Random Setting gest set to Off and the “Max”/”B” properties value gets set to 0 losing its previous value of 1
Reproducible with: 2023.3.0a14, 6000.0.22f1
Not reproducible with: 2021.3.44f1, 2022.3.49f1, 2023.3.0a11
Could not test: 2023.3.0a12, 2023.3.0a13 (“Test.vfx“ got corrupted after the upgrade)
Reproducible on: macOS 14.6.1 (Intel)
Not reproducible on: Windows 10 Pro (22H2)
Note:
- Migration between 2021.3 and 2022.3 does not cause any issues
- Migrating from 2021.3 to Unity 6 reproduces the issue too
- Could not find the exact FAV, more information in the comments
- After the migration, you might get the error “Exception while sanitizing model: Set 'CustomAttribute' Random (Uniform) (Float) of type UnityEditor.VFX.Block.SetCustomAttribute: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.“ (Full error in the comments)