30 lines
932 B
C#
30 lines
932 B
C#
|
using System.Runtime.Serialization;
|
||
|
|
||
|
namespace UnityEngine.UI.Extensions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Doesn't seem fully implemented yet?
|
||
|
/// </summary>
|
||
|
//public sealed class TransformSurrogate : ISerializationSurrogate
|
||
|
//{
|
||
|
|
||
|
// // Method called to serialize a Vector3 object
|
||
|
// public void GetObjectData(System.Object obj,
|
||
|
// SerializationInfo info, StreamingContext context)
|
||
|
// {
|
||
|
|
||
|
// Transform tr = (Transform)obj;
|
||
|
// }
|
||
|
|
||
|
// // Method called to deserialize a Vector3 object
|
||
|
// public System.Object SetObjectData(System.Object obj,
|
||
|
// SerializationInfo info, StreamingContext context,
|
||
|
// ISurrogateSelector selector)
|
||
|
// {
|
||
|
|
||
|
// Transform tr = (Transform)obj;
|
||
|
|
||
|
// return obj;
|
||
|
// }
|
||
|
//}
|
||
|
}
|