SKUMultiLineLabelNode

Conforms to:
NSCopying
Superclass:
SKSpriteNode
Declared In:

Introduction

Provides an SKLabelNode-like interface for multiline labels.



Methods

+labelNodeWithFontNamed:

labelNodeWithFontNamed:


+ (instancetype)labelNodeWithFontNamed:(NSString *)fontName; 
Parameters
fontName

Name of the font.

Return Value

SKUMultiLineLabelNode object

Discussion

Convenience method to create and return a new object with specific font name.


Properties

fontColor
fontName
fontSize
horizontalAlignmentMode
lineSpacing
paragraphHeight
paragraphWidth
strokeColor
strokeWidth
text
verticalAlignmentMode

fontColor


@property(retain,
    nonatomic) SKColor* fontColor; 
Discussion

Color to make text.


fontName


@property(copy,
    nonatomic) NSString* fontName; 
Discussion

NSString name of font.


fontSize


@property(nonatomic) CGFloat fontSize; 
Discussion

Size of font.


horizontalAlignmentMode


@property(nonatomic) SKLabelHorizontalAlignmentMode horizontalAlignmentMode; 
Discussion

Uses SKLabelNode alignment mode enumerations to determine horizontal alignment.


lineSpacing


@property(nonatomic,
    assign) CGFloat lineSpacing; 
Discussion

Space between lines in points.


paragraphHeight


@property(nonatomic,
    assign) CGFloat paragraphHeight; 
Discussion

Allows to make text fit into a vertical space. Might be necessary to force stroke to work right.


paragraphWidth


@property(nonatomic,
    assign) CGFloat paragraphWidth; 
Discussion

Used to determine the width the text can occupy before creating a new line.


strokeColor


@property(retain,
    nonatomic) SKColor* strokeColor; 
Discussion

Color of the stroke.


strokeWidth


@property(nonatomic,
    assign) CGFloat strokeWidth; 
Discussion

Width of the stroke.


text


@property(copy,
    nonatomic) NSString* text; 
Discussion

NSString representation of the text.


verticalAlignmentMode


@property(nonatomic) SKLabelVerticalAlignmentMode verticalAlignmentMode; 
Discussion

Uses SKLabelNode alignment mode enumerations to determine horizontal alignment. Note that, due to the inability to determine the location of the bottom baseline, both the baseline and bottom enumerations result in bottom-like behavior.