SKUMultiLineLabelNode
IntroductionProvides an SKLabelNode-like interface for multiline labels. MethodslabelNodeWithFontNamed:+ (instancetype)labelNodeWithFontNamed:(NSString *)fontName; ParametersReturn ValueSKUMultiLineLabelNode object DiscussionConvenience method to create and return a new object with specific font name. Properties
fontColor@property(retain, nonatomic) SKColor* fontColor; DiscussionColor to make text. fontName@property(copy, nonatomic) NSString* fontName; DiscussionNSString name of font. fontSize@property(nonatomic) CGFloat fontSize; DiscussionSize of font. horizontalAlignmentMode@property(nonatomic) SKLabelHorizontalAlignmentMode horizontalAlignmentMode; DiscussionUses SKLabelNode alignment mode enumerations to determine horizontal alignment. lineSpacing@property(nonatomic, assign) CGFloat lineSpacing; DiscussionSpace between lines in points. paragraphHeight@property(nonatomic, assign) CGFloat paragraphHeight; DiscussionAllows to make text fit into a vertical space. Might be necessary to force stroke to work right. paragraphWidth@property(nonatomic, assign) CGFloat paragraphWidth; DiscussionUsed to determine the width the text can occupy before creating a new line. strokeColor@property(retain, nonatomic) SKColor* strokeColor; DiscussionColor of the stroke. strokeWidth@property(nonatomic, assign) CGFloat strokeWidth; DiscussionWidth of the stroke. text@property(copy, nonatomic) NSString* text; DiscussionNSString representation of the text. verticalAlignmentMode@property(nonatomic) SKLabelVerticalAlignmentMode verticalAlignmentMode; DiscussionUses 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. |