{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ColorEqualityComparer | Test Framework | 2.0.1-exp.2
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Class ColorEqualityComparer

    Use this class to compare two Color objects. ColorEqualityComparer.Instance has default calculation error value set to 0.01f. To set a test specific error value instantiate a comparer instance using the one argument constructor.

    상속
    object
    ColorEqualityComparer
    구현
    IEqualityComparer<Color>
    상속된 멤버
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    네임스페이스: UnityEngine.TestTools.Utils
    어셈블리: solution.dll
    구문
    public class ColorEqualityComparer : IEqualityComparer<Color>

    생성자

    이름 설명
    ColorEqualityComparer(float)

    Creates an instance of the comparer with a custom error value.

    프로퍼티

    이름 설명
    Instance

    A singleton instance of the comparer with a default error value set to 0.01f.

    메서드

    이름 설명
    Equals(Color, Color)

    Compares the actual and expected Color objects for equality using AreFloatsEqualAbsoluteError(float, float, float) to compare the RGB and Alpha attributes of Color. Returns true if expected and actual objects are equal otherwise, it returns false.

    GetHashCode(Color)

    Serves as the default hash function.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)