docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IReferenceImageNamingStrategy

    Pluggable strategy for building a reference image file descriptor for parameterized graphics tests.

    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public interface IReferenceImageNamingStrategy
    Remarks

    Implementations must be stateless, have a public parameterless constructor, and must not be expensive to construct. When assigned via ReferenceImageNamingStrategyType, this strategy takes precedence over ReferenceImageRootSource.

    Methods

    CreateDescriptor(GraphicsTestCase, string, ImageExtension, TextureFormat)

    Creates a descriptor for the given parameterized test case.

    Declaration
    IReferenceImageFileDescriptor CreateDescriptor(GraphicsTestCase rawCase, string parameterizedTestName, ImageExtension extension, TextureFormat format)
    Parameters
    Type Name Description
    GraphicsTestCase rawCase

    The graphics test case before parameter expansion (e.g. includes scene path for scene tests).

    string parameterizedTestName

    The NUnit display name fragment used as the default reference root.

    ImageExtension extension

    Reference image extension from the graphics test attribute.

    TextureFormat format

    Texture format from the graphics test attribute.

    Returns
    Type Description
    IReferenceImageFileDescriptor

    A descriptor, or null to fall back to ParameterizedTestNameNamingStrategy-based naming.

    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)