28 lines
913 B
C#
28 lines
913 B
C#
|
|
/*WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW*\ ( ( ) )
|
|
|/ \| ) ) _((_
|
|
|| (c) Wanzyee Studio < wanzyeestudio.blogspot.com > || ( ( |_ _ |=n
|
|
|\ /| _____)) | ! ] U
|
|
\.ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ./ (_(__(S) |___*/
|
|
|
|
using UnityEngine;
|
|
|
|
namespace WanzyeeStudio.Json{
|
|
|
|
/// <summary>
|
|
/// Custom <c>Newtonsoft.Json.JsonConverter</c> for <c>UnityEngine.RectOffset</c>.
|
|
/// </summary>
|
|
public class RectOffsetConverter : PartialConverter<RectOffset>{
|
|
|
|
/// <summary>
|
|
/// Get the property names include <c>left</c>, <c>right</c>, <c>top</c>, <c>bottom</c>.
|
|
/// </summary>
|
|
/// <returns>The property names.</returns>
|
|
protected override string[] GetPropertyNames(){
|
|
return new []{"left", "right", "top", "bottom"};
|
|
}
|
|
|
|
}
|
|
|
|
}
|