35 lines
566 B
C#
35 lines
566 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace EasyLayout
|
|
{
|
|
[Serializable]
|
|
public struct Padding
|
|
{
|
|
[SerializeField]
|
|
public float Left;
|
|
|
|
[SerializeField]
|
|
public float Right;
|
|
|
|
[SerializeField]
|
|
public float Top;
|
|
|
|
[SerializeField]
|
|
public float Bottom;
|
|
|
|
public Padding(float left, float right, float top, float bottom)
|
|
{
|
|
Left = left;
|
|
Right = right;
|
|
Top = top;
|
|
Bottom = bottom;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("Padding(left: {0}, right: {1}, top: {2}, bottom: {3})", Left, Right, Top, Bottom);
|
|
}
|
|
}
|
|
}
|