docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)