Enumeration

SKLabelHorizontalAlignmentMode

Options for aligning text horizontally.

Declaration

enum SKLabelHorizontalAlignmentMode : Int

Topics

Constants

case center

Centers the text horizontally on the node’s origin.

case left

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

case right

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

See Also

Controlling a Label's Alignment

var verticalAlignmentMode: SKLabelVerticalAlignmentMode

The vertical position of the text within the node.

enum SKLabelVerticalAlignmentMode

Options for aligning text vertically.

var horizontalAlignmentMode: SKLabelHorizontalAlignmentMode

The horizontal position of the text within the node.