docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ReferenceImageRootSource

    Selects how the reference image file stem is derived when a graphics test method is parameterized.

    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public enum ReferenceImageRootSource
    Remarks

    When ReferenceImageNamingStrategyType is set and produces a descriptor, this value is ignored for that method.

    Fields

    Name Description
    ParameterizedTestName

    Use the parameterized NUnit test case name (default, historical behavior).

    SceneAssetFileStem

    For SceneGraphicsTestCase, use the scene asset file name without extension as the reference image root. All parameter combinations for the same scene then share one reference image. If the raw case is not scene-based, falls back to ParameterizedTestName and logs a warning.

    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)