Edit

Share via


SKLabelNode.FromText Method

Definition

Overloads

FromText(NSAttributedString)
FromText(String)

Creates a new label with the specified text.

FromText(NSAttributedString)

[Foundation.Export("labelNodeWithAttributedText:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKLabelNode FromText (Foundation.NSAttributedString attributedText);
static member FromText : Foundation.NSAttributedString -> SpriteKit.SKLabelNode

Parameters

attributedText
NSAttributedString

To be added.

This parameter can be null.

Returns

Attributes

Applies to

FromText(String)

Creates a new label with the specified text.

[Foundation.Export("labelNodeWithText:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKLabelNode FromText (string text);
static member FromText : string -> SpriteKit.SKLabelNode

Parameters

text
String

To be added.

This parameter can be null.

Returns

Attributes

Applies to