/*WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW*\ ( ( ) ) |/ \| ) ) _((_ || (c) Wanzyee Studio < wanzyeestudio.blogspot.com > || ( ( |_ _ |=n |\ /| _____)) | ! ] U \.ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ./ (_(__(S) |___*/ using UnityEngine; using System.Linq; namespace WanzyeeStudio.Json{ /// /// Custom Newtonsoft.Json.JsonConverter for UnityEngine.Matrix4x4. /// public class Matrix4x4Converter : PartialConverter{ /// /// Get the property names include from m00 to m33. /// /// The property names. protected override string[] GetPropertyNames(){ var _indexes = new []{"0", "1", "2", "3"}; return _indexes.SelectMany((row) => _indexes.Select((column) => "m" + row + column)).ToArray(); } } }