docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IsTexture

    Provides constraints for texture assertions in tests.

    Inheritance
    object
    IsTexture
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public static class IsTexture

    Methods

    EqualTo(Texture2D)

    Returns a constraint that checks if a texture is equal to the expected texture.

    Declaration
    public static EqualToTextureConstraint EqualTo(Texture2D expected)
    Parameters
    Type Name Description
    Texture2D expected

    The expected texture to compare against.

    Returns
    Type Description
    EqualToTextureConstraint

    An EqualToTextureConstraint for the expected texture.

    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)