Enumeration

SKLabelHorizontalAlignmentMode

Options for aligning text horizontally.

Declaration

typedef enum SKLabelHorizontalAlignmentMode : NSInteger {
    ...
} SKLabelHorizontalAlignmentMode;

Topics

Constants

SKLabelHorizontalAlignmentModeCenter

Centers the text horizontally on the node’s origin.

SKLabelHorizontalAlignmentModeLeft

Positions the text so that the left side of the text is on the node’s origin.

SKLabelHorizontalAlignmentModeRight

Positions the text so that the right side of the text is on the node’s origin.

See Also

Controlling a Label's Alignment

verticalAlignmentMode

The vertical position of the text within the node.

SKLabelVerticalAlignmentMode

Options for aligning text vertically.

horizontalAlignmentMode

The horizontal position of the text within the node.