Table of Contents

Class JsonConverters.Texture2DJsonConverter

Namespace
PAC.Extensions

Custom JSON converter for Texture2D.

public class JsonConverters.Texture2DJsonConverter : JsonConversion.JsonConverter<Texture2D, JsonData.Object>
Inheritance
JsonConverters.Texture2DJsonConverter
Inherited Members

Methods

FromJson(Object)

Attempts to convert the JSON data into a C# object of the given type.

NOTE: JsonConverter has a default implementation for an overload FromJson(JsonData jsonData) that ensures it is of type JsonDataType before calling the specific overload FromJSON(JsonDataType jsonData).

public override Texture2D FromJson(JsonData.Object jsonData)

Parameters

jsonData JsonData.Object

Returns

Texture2D

ToJson(Texture2D)

Attempts to convert the C# object into JSON data.

public override JsonData.Object ToJson(Texture2D tex)

Parameters

tex Texture2D

Returns

JsonData.Object