docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlatformSchema

    A platform schema for use in constructing GraphicsTestPlatform objects.

    Inheritance
    object
    PlatformSchema
    Implements
    ISerializationCallbackReceiver
    IEquatable<PlatformSchema>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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()

    Implements

    ISerializationCallbackReceiver
    IEquatable<T>
    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)