Value | Meaning |
---|---|
presetTopLeft0 | Snap all 4 anchors to the top-left of the parent control's bounds. Use with setAnchorsPreset. |
presetTopRight1 | Snap all 4 anchors to the top-right of the parent control's bounds. Use with setAnchorsPreset. |
presetBottomLeft2 | Snap all 4 anchors to the bottom-left of the parent control's bounds. Use with setAnchorsPreset. |
presetBottomRight3 | Snap all 4 anchors to the bottom-right of the parent control's bounds. Use with setAnchorsPreset. |
presetCenterLeft4 | Snap all 4 anchors to the center of the left edge of the parent control's bounds. Use with setAnchorsPreset. |
presetCenterTop5 | Snap all 4 anchors to the center of the top edge of the parent control's bounds. Use with setAnchorsPreset. |
presetCenterRight6 | Snap all 4 anchors to the center of the right edge of the parent control's bounds. Use with setAnchorsPreset. |
presetCenterBottom7 | Snap all 4 anchors to the center of the bottom edge of the parent control's bounds. Use with setAnchorsPreset. |
presetCenter8 | Snap all 4 anchors to the center of the parent control's bounds. Use with setAnchorsPreset. |
presetLeftWide9 | Snap all 4 anchors to the left edge of the parent control. The left margin becomes relative to the left edge and the top margin relative to the top left corner of the node's parent. Use with setAnchorsPreset. |
presetTopWide10 | Snap all 4 anchors to the top edge of the parent control. The left margin becomes relative to the top left corner, the top margin relative to the top edge, and the right margin relative to the top right corner of the node's parent. Use with setAnchorsPreset. |
presetRightWide11 | Snap all 4 anchors to the right edge of the parent control. The right margin becomes relative to the right edge and the top margin relative to the top right corner of the node's parent. Use with setAnchorsPreset. |
presetBottomWide12 | Snap all 4 anchors to the bottom edge of the parent control. The left margin becomes relative to the bottom left corner, the bottom margin relative to the bottom edge, and the right margin relative to the bottom right corner of the node's parent. Use with setAnchorsPreset. |
presetVcenterWide13 | Snap all 4 anchors to a vertical line that cuts the parent control in half. Use with setAnchorsPreset. |
presetHcenterWide14 | Snap all 4 anchors to a horizontal line that cuts the parent control in half. Use with setAnchorsPreset. |
presetWide15 | Snap all 4 anchors to the respective corners of the parent control. Set all 4 margins to 0 after you applied this preset and the Control will fit its parent control. This is equivalent to the "Full Rect" layout option in the editor. Use with setAnchorsPreset. |