Version: 2018.4
public static void FlipLayoutOnAxis (RectTransform rect, int axis, bool keepPositioning, bool recursive);

パラメーター

rect反転する RectTransform。
keepPositioningtrue であればピボットを中心に反転します。false であれば親矩形内で反転します。
recursive子も同様にフリップするか。
axisフリップ時に沿う軸。0 は水平で、1 は垂直です。

説明

RectTransform のアラインメントを水平や垂直軸に沿ってフリップさせ、オプションで子も同様に行います。

This flips the alignment of the RectTransform. Any actual content such as images or text will not be flipped but may aligned differently. An example usage is to instantiate a control designed in a left to right manner (like a horizontal slider where 0 is to the left) and flip it horizontally so the layout becomes suitable for use in the opposite direction (like a horizontal slider where 0 is to the right).

recursive 引数を true に設定して使用した場合、子は常にプロパティーが親のフリップに従うように、keepPositioning オプションを false に設定してフリップされます。