コード例 #1
0
        public VerticalStack(RectTransform rectTrans, List <RectTransform> contents, StackDistribution distribution, StackAlignment alignment, float inputSpacing, Vector2[] padding)
        {
            this.RectTransform = rectTrans;
            this.Bounds        = rectTrans.rect;
            this.Contents      = contents;
            this.distribution  = distribution;
            this.alignment     = alignment;
            this.inputSpacing  = inputSpacing;
            this.padding       = padding;

            this.assignedSpacing = new Vector2[contents.Count];
        }
コード例 #2
0
ファイル: StackLayout.cs プロジェクト: dblom90/MenuBuddy
 public StackLayout(StackLayout inst) : base(inst)
 {
     _alignment = inst._alignment;
 }
コード例 #3
0
ファイル: StackLayout.cs プロジェクト: dblom90/MenuBuddy
 public StackLayout(StackAlignment alignment)
 {
     Alignment  = alignment;
     Horizontal = HorizontalAlignment.Center;
 }