57 lines
1.2 KiB
C#
57 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UguiToolkit.Editor
|
|
{
|
|
[Serializable]
|
|
public class RotScaleJsonData
|
|
{
|
|
public Dictionary<string, List<RotScaleJsonItemData>> data;
|
|
}
|
|
|
|
[Serializable]
|
|
public struct RotScaleJsonItemData
|
|
{
|
|
public string targetPath;
|
|
public float rot;
|
|
public float[] scale;
|
|
}
|
|
|
|
[Serializable]
|
|
public class LayoutJsonData
|
|
{
|
|
public LayoutInfoJsonData info;
|
|
public LayoutElementJsonData root;
|
|
}
|
|
|
|
[Serializable]
|
|
public class LayoutInfoJsonData
|
|
{
|
|
public string version;
|
|
public CanvasInfoJsonData canvas;
|
|
|
|
[Serializable]
|
|
public class CanvasInfoJsonData
|
|
{
|
|
public CanvasSizeJsonData size;
|
|
[Serializable]
|
|
public struct CanvasSizeJsonData
|
|
{
|
|
public float w;
|
|
public float h;
|
|
}
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class LayoutElementJsonData
|
|
{
|
|
public string type;
|
|
public string name;
|
|
public float x;
|
|
public float y;
|
|
public float w;
|
|
public float h;
|
|
public List<LayoutElementJsonData> element;
|
|
}
|
|
} |