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]; }
public StackLayout(StackLayout inst) : base(inst) { _alignment = inst._alignment; }
public StackLayout(StackAlignment alignment) { Alignment = alignment; Horizontal = HorizontalAlignment.Center; }