1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- namespace UnityEditor.U2D.Animation
- {
- internal interface ISkinningSerializer
- {
- bool CanDeserialize(string data);
- SkinningCopyData Deserialize(string data);
- string Serialize(SkinningCopyData skinningData);
- }
- [Serializable]
- internal class SpriteBoneCopyData
- {
- public UnityEngine.U2D.SpriteBone spriteBone;
- public int order;
- }
- [Serializable]
- internal class SkinningCopySpriteData
- {
- public string spriteName;
- public List<SpriteBoneCopyData> spriteBones;
- public List<Vertex2D> vertices;
- public List<int> indices;
- public List<Edge> edges;
- public List<string> boneWeightNames;
- }
- [Serializable]
- internal class SkinningCopyData
- {
- public float pixelsPerUnit;
- public List<SkinningCopySpriteData> copyData = new List<SkinningCopySpriteData>();
- }
- }
|