Enum ComparisonAlgorithm
Selects the TextureComparisonAlgorithm that ImageAssert.AreEqual creates
to compare a rendered image with its reference. Scenes store the value as an integer, so a
member's value must never change.
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public enum ComparisonAlgorithm
Fields
| Name | Description |
|---|---|
| LegacyColorDifference | Compares with LegacyColorDifferenceAlgorithm, which evaluates the tests selected by ActiveImageTests. It measures deltaE with the original deltaE formula, which existing reference images were made with. |
| TiledDeltaE | Compares with TiledDeltaEAlgorithm, which averages each pixel's deltaE above PerPixelCorrectnessThreshold over the whole image and within each tile of a TilesPerAxis grid. It measures deltaE with the corrected deltaE formula. |