Search Issue Tracker

Fixed in 2020.2.X

Votes

0

Found in

2020.1

2020.1.0b2

2020.2

Issue ID

1229273

Regression

No

[Presets] Inconsistent behaviour of Preset.PropertyModifications when excluding/including properties

Settings Window

-

Reproduction steps:
1. Open the attached project ("case_1229273-PresetPropertyModifications.zip")
2. Open Editor window via "Window -> PropertyModificationsWindow"
3. Drag the 'TransformPreset0' asset from the project window into the object field in PropertyModificationsWindow
4. Observe Preset.PropertyModifications returning an array of 14 elements
5. Exclude all properties for 'TransformPreset0' asset via the inspector context menu (three dots button to the right of asset name in the inspector)
6. Observe all property modifications returned are empty
7. Include all properties one by one via the 'TransformPreset0' in Inspector - Right-click "Position", "Rotation" and "Scale" and click "Include property"
8. Observe Preset.PropertyModifications returning an array of 24 elements
9. Include all properties for 'TransformPreset0' asset via inspector context menu "Include all properties".
10. Observe Preset.PropertyModifications returning an array of 14 elements while asset inspector looks the same

Expected result: Preset modification array length remains the same
Actual result: Manually including all the properties after they were excluded yields a preset with more elements in modification array(in this case 24)

Reproducible with: 2020.1.0b6, 2020.2.0a7
Couldn't test with: 2017.4 (presets not supported), 2018.4, 2019.3 (manual include/exclude of fields is not supported)

  1. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a12

Comments (1)

  1. Excelscience

    Aug 16, 2020 07:59

    https://www.sbnation.com/users/Contentsmission
    https://www.mmamania.com/users/Contentsmission
    https://www.mmafighting.com/users/Contentsmission
    https://www.arrowheadpride.com/users/Contentsmission
    https://www.ninersnation.com/users/Contentsmission
    https://www.silverandblackpride.com/users/Contentsmission
    https://www.badlefthook.com/users/Contentsmission
    https://www.milehighreport.com/users/Contentsmission
    https://www.silverscreenandroll.com/users/Contentsmission
    https://www.patspulpit.com/users/Contentsmission
    https://www.windycitygridiron.com/users/Contentsmission
    https://www.barcablaugranes.com/users/Contentsmission
    https://www.amazinavenue.com/users/Contentsmission
    https://www.bleedcubbieblue.com/users/Contentsmission
    https://www.netsdaily.com/users/Contentsmission
    https://www.celticsblog.com/users/Contentsmission
    https://www.buffalorumblings.com/users/Contentsmission
    https://www.bigblueview.com/users/Contentsmission
    https://www.behindthesteelcurtain.com/users/Contentsmission
    https://www.thephinsider.com/users/Contentsmission
    https://www.pinstripealley.com/users/Contentsmission
    https://www.silverandblackpride.com/users/Contentsmission
    https://www.poundingtherock.com/users/Contentsmission
    https://www.goldenstateofmind.com/users/Contentsmission
    https://www.fieldgulls.com/users/Contentsmission
    https://www.aseaofblue.com/users/Contentsmission
    https://www.everydayshouldbesaturday.com/users/Contentsmission
    https://www.truebluela.com/users/Contentsmission
    https://www.acmepackingcompany.com/users/Contentsmission
    https://www.dawgsbynature.com/users/Contentsmission
    https://www.fearthesword.com/users/Contentsmission
    https://www.canalstreetchronicles.com/users/Contentsmission
    https://www.battleofcali.com/users/Contentsmission
    https://www.anaheimcalling.com/users/Contentsmission
    https://www.stlouisgametime.com/users/Contentsmission
    https://www.secondcityhockey.com/users/Contentsmission
    https://www.ontheforecheck.com/users/Contentsmission
    https://www.milehighhockey.com/users/Contentsmission
    https://www.hockeywilderness.com/users/Contentsmission
    https://www.defendingbigd.com/users/Contentsmission
    https://www.arcticicehockey.com/users/Contentsmission
    https://www.jacketscannon.com/users/Contentsmission
    https://www.pensburgh.com/users/Contentsmission
    https://www.lighthousehockey.com/users/Contentsmission
    https://www.japersrink.com/users/Contentsmission
    https://www.canescountry.com/users/Contentsmission
    https://www.broadstreethockey.com/users/Contentsmission
    https://www.blueshirtbanter.com/users/Contentsmission
    https://www.allaboutthejersey.com/users/Contentsmission
    https://www.wingingitinmotown.com/users/Contentsmission

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.