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.
Inherited Members
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. |