Preset.DataEquals() isn't excluding excludedproperties

Hello,

Unity Editor version 2022.3.20f1
I’m writing an editor tool that will check if assets in the project are aligned with presets that we’re using as our “standards”. If the tool finds an asset that’s not aligned with a preset it will flag it to be adjusted by the team. While writing the tool I’ve run into an issue where the preset.DataEquals() function will not exclude properties that are included in the string excludedproperties. Other than the exclude issue the preset functional works as expected, if the importer matches one of the presets the tool doesn’t flag it. Is this intentional functionality or is this a bug and is there a way to compare importers to presets that takes the excludedproperties into account?

1 Like