Class DataSerializerFactory
Data Serializer factory class
Inheritance
System.Object
DataSerializerFactory
Namespace: UnityEngine.GameFoundation.DataPersistence
Syntax
public static class DataSerializerFactory
Methods
Produce(DataSerializerType)
Produces an instance of a specified serializer type
Declaration
public static IDataSerializer Produce(DataSerializerType type)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSerializerType | type | Serializer type to produce |
Returns
| Type | Description |
|---|---|
| IDataSerializer | Specified serializer instance |
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException | Exception thrown when given DataSerializerType passed to method is a type that is not supported |