Düzenle

Aracılığıyla paylaş


SKNode.FromFile<T>(String) Method

Definition

Creates a new SKNode by loading the assets from a file included in the application.

public static T FromFile<T> (string file) where T : SpriteKit.SKNode;
static member FromFile : string -> 'T (requires 'T :> SpriteKit.SKNode)

Type Parameters

T

Parameters

file
String

Filename containing the SpriteKit assets, without the extension.

Returns

T

The new instance of the node.   The parameter type T is used to determine which kind of class you want to get out of the file.

Applies to