21 [SerializeField]
private bool m_Show;
22 [SerializeField]
private Layer m_Layer;
23 [SerializeField]
private Align m_Align =
Align.Left;
24 [SerializeField]
private Sprite m_Sprite;
25 [SerializeField]
private Color m_Color = Color.white;
26 [SerializeField]
private float m_Width = 20;
27 [SerializeField]
private float m_Height = 20;
28 [SerializeField]
private Vector3 m_Offset;
29 [SerializeField]
private bool m_AutoHideWhenLabelEmpty =
false;
34 m_Layer = Layer.UnderLabel;
36 m_Color = Color.white;
39 m_Offset = Vector3.zero;
40 m_AutoHideWhenLabelEmpty =
false;
46 public bool show {
get {
return m_Show; }
set { m_Show = value; } }
50 public Layer
layer {
get {
return m_Layer; }
set { m_Layer = value; } }
55 public Sprite
sprite {
get {
return m_Sprite; }
set { m_Sprite = value; } }
59 public Color
color {
get {
return m_Color; }
set { m_Color = value; } }
63 public float width {
get {
return m_Width; }
set { m_Width = value; } }
67 public float height {
get {
return m_Height; }
set { m_Height = value; } }
71 public Vector3
offset {
get {
return m_Offset; }
set { m_Offset = value; } }
75 public Align align {
get {
return m_Align; }
set { m_Align = value; } }
79 public bool autoHideWhenLabelEmpty {
get {
return m_AutoHideWhenLabelEmpty; }
set { m_AutoHideWhenLabelEmpty = value; } }
83 iconStyle.show =
show;
84 iconStyle.layer =
layer;
86 iconStyle.color =
color;
87 iconStyle.width =
width;
90 iconStyle.align =
align;
95 public void Copy(IconStyle iconStyle)
97 show = iconStyle.show;
98 layer = iconStyle.layer;
100 color = iconStyle.color;
101 width = iconStyle.width;
102 height = iconStyle.height;
103 offset = iconStyle.offset;
104 align = iconStyle.align;