LayoutGroup.SetChildAlongAxis

Switch to Manual
protected void SetChildAlongAxis (RectTransform rect, int axis, float pos, float size);

Parameters

rect子布局元素的 RectTransform。
axis设置位置和大小的参考轴。0 表示水平,1 表示垂直。
pos左侧或上方的位置。
size大小。

Description

设置子布局元素沿给定轴的位置和大小。