forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVerticalLayoutGroup.cs
More file actions
52 lines (47 loc) · 1.47 KB
/
VerticalLayoutGroup.cs
File metadata and controls
52 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Decompiled with JetBrains decompiler
// Type: UnityEngine.UI.VerticalLayoutGroup
// Assembly: UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 2216A18B-AF52-44A5-85A0-A1CAA19C1090
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.UI.dll
namespace UnityEngine.UI
{
/// <summary>
/// <para>Layout child layout elements below each other.</para>
/// </summary>
[AddComponentMenu("Layout/Vertical Layout Group", 151)]
public class VerticalLayoutGroup : HorizontalOrVerticalLayoutGroup
{
protected VerticalLayoutGroup()
{
}
/// <summary>
/// <para>Called by the layout system.</para>
/// </summary>
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
this.CalcAlongAxis(0, true);
}
/// <summary>
/// <para>Called by the layout system.</para>
/// </summary>
public override void CalculateLayoutInputVertical()
{
this.CalcAlongAxis(1, true);
}
/// <summary>
/// <para>Called by the layout system.</para>
/// </summary>
public override void SetLayoutHorizontal()
{
this.SetChildrenAlongAxis(0, true);
}
/// <summary>
/// <para>Called by the layout system.</para>
/// </summary>
public override void SetLayoutVertical()
{
this.SetChildrenAlongAxis(1, true);
}
}
}