Class PlatformSchema
A platform schema for use in constructing GraphicsTestPlatform objects.
Inherited Members
Namespace: UnityEngine.TestTools.Graphics.Platforms
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
[Serializable]
public class PlatformSchema : ISerializationCallbackReceiver, IEquatable<PlatformSchema>
Fields
name
The name of the schema. This will be used to identify nodes and bundles built using the schema.
Declaration
public string name
Field Value
| Type | Description |
|---|---|
| string |
nodes
The platform nodes that will be used to generate GraphicsTestPlatform objects These should be provided in order as they will dictate the directory structure for test assets.
Declaration
public string[] nodes
Field Value
| Type | Description |
|---|---|
| string[] |
rootPath
The root path of the schema. Should be relative to the project root. This will be used to read and write test assets when using the schema.
Declaration
public string rootPath
Field Value
| Type | Description |
|---|---|
| string |
Methods
Equals(PlatformSchema)
Declaration
public bool Equals(PlatformSchema other)
Parameters
| Type | Name | Description |
|---|---|---|
| PlatformSchema | other |
Returns
| Type | Description |
|---|---|
| bool |
OnAfterDeserialize()
Implement this callback to transform data back into runtime data types after an object is deserialized.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this callback to transform data into serializable data types immediately before an object is serialized.
Declaration
public void OnBeforeSerialize()