docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ImageAssert.ImageComparisonResults

    Represents the results from an image comparison operation.

    Implements
    IEquatable<ImageAssert.ImageComparisonResults>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public struct ImageAssert.ImageComparisonResults : IEquatable<ImageAssert.ImageComparisonResults>

    Properties

    AverageDeltaE

    The average delta E value from the image comparison.

    Declaration
    public float AverageDeltaE { readonly get; set; }
    Property Value
    Type Description
    float

    AverageDeltaEWithinThreshold

    Gets or sets whether the average deltaE is within threshold

    Declaration
    public bool AverageDeltaEWithinThreshold { readonly get; set; }
    Property Value
    Type Description
    bool

    BadPixelsCount

    The number of bad pixels found during the image comparison.

    Declaration
    public float BadPixelsCount { readonly get; set; }
    Property Value
    Type Description
    float

    BadPixelsCountWithinThreshold

    Gets or sets whether the bad pixel ratio is within threshold

    Declaration
    public bool BadPixelsCountWithinThreshold { readonly get; set; }
    Property Value
    Type Description
    bool

    Success

    Indicates whether the image comparison was successful.

    Declaration
    public bool Success { readonly get; init; }
    Property Value
    Type Description
    bool

    Methods

    Equals(object)

    Compares this instance with another object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with.

    Returns
    Type Description
    bool

    True if the object is an instance of ImageAssert.ImageComparisonResults and is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(ImageComparisonResults)

    Compares this instance with another instance of ImageAssert.ImageComparisonResults.

    Declaration
    public bool Equals(ImageAssert.ImageComparisonResults other)
    Parameters
    Type Name Description
    ImageAssert.ImageComparisonResults other

    The other instance to compare with.

    Returns
    Type Description
    bool

    True if the instances are equal; otherwise, false.

    GetHashCode()

    Generates a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    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)