docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerContentBuilders

    The registry of IPlayerContentBuilders that produce content bundles for graphics test player builds. The framework registers its reference image and test data builders by default; register a custom builder to ship additional content with test players.

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

    Properties

    All

    The registered content builders, in execution order.

    Declaration
    public static IReadOnlyList<IPlayerContentBuilder> All { get; }
    Property Value
    Type Description
    IReadOnlyList<IPlayerContentBuilder>

    Methods

    Register(IPlayerContentBuilder)

    Registers a content builder to run after the already registered builders. The registry is process-wide, so register once per domain reload or pair this with Unregister(IPlayerContentBuilder); registering a new instance per build would leave the previous one running too.

    Declaration
    public static void Register(IPlayerContentBuilder builder)
    Parameters
    Type Name Description
    IPlayerContentBuilder builder

    The builder to register.

    Unregister(IPlayerContentBuilder)

    Removes a previously registered content builder.

    Declaration
    public static bool Unregister(IPlayerContentBuilder builder)
    Parameters
    Type Name Description
    IPlayerContentBuilder builder

    The builder to remove.

    Returns
    Type Description
    bool

    True when the builder was registered and has been removed.

    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)