X Origin
Introduction
The X Origin variable controls the point which an object is positioned by. By default the X Origin is Left. X Origin is shown visually as a white "X" in the editor.

X Origin of LeftLeft
The following image shows a ColoredRectangle with its X Origin set to Left:

Center
The following image shows a ColoredRectangle with its X Origin set to Center:

Right
The following image shows a ColoredRectangle with its X Origin set to Right:

X Origin in a Left to Right Stack
A child in a Left to Right Stack which is not the first child ignores its X Origin, and the stack positions it as if its X Origin were Left. This keeps it from overlapping its previous sibling. The first child in the stack uses its X Origin normally, and X Origin works normally for every child in a Top to Bottom Stack.
Last updated
Was this helpful?

