SKNode.FromFile<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.