Definition at line 5 of file MsgLine.cs.
◆ AddElement() [1/2]
void MsgLine.AddElement |
( |
Component |
c | ) |
|
|
inlineprivate |
◆ AddElement() [2/2]
void MsgLine.AddElement |
( |
Component |
c, |
|
|
MsgLine |
line |
|
) |
| |
|
inlineprivate |
Definition at line 52 of file MsgLine.cs.
53 {
54 c.transform.SetParent(line.transform, worldPositionStays: false);
55 line.
layout.RebuildLayout();
56 }
HorizontalLayoutGroup layout
References layout.
◆ Append() [1/2]
void MsgLine.Append |
( |
Sprite |
s, |
|
|
bool |
fitLine = true |
|
) |
| |
|
inline |
Definition at line 29 of file MsgLine.cs.
30 {
32 Image componentInChildren = transform.GetComponentInChildren<Image>();
33 componentInChildren.sprite = s;
34 if (fitLine)
35 {
36 RectTransform rectTransform = transform.Rect();
37 rectTransform.sizeDelta =
new Vector2(
rect.sizeDelta.y,
rect.sizeDelta.y);
38 componentInChildren.transform.Rect().sizeDelta = rectTransform.sizeDelta;
39 }
41 }
void AddElement(Component c)
static Transform Spawn(string id, string path, Transform parent)
References AddElement(), layout, prefabs, rect, and PoolManager.Spawn().
◆ Append() [2/2]
void MsgLine.Append |
( |
string |
s, |
|
|
FontColor |
col |
|
) |
| |
|
inline |
◆ Awake()
◆ Reset()
Definition at line 58 of file MsgLine.cs.
59 {
60 for (int num = base.transform.childCount - 1; num >= 0; num--)
61 {
63 }
64 this.RebuildLayout();
65 }
static void DespawnOrDestroy(Component c)
References PoolManager.DespawnOrDestroy().
◆ block
◆ layout
HorizontalLayoutGroup MsgLine.layout |
◆ rect
RectTransform MsgLine.rect |
◆ prefabs
The documentation for this class was generated from the following file: