Szerkesztés

Megosztás a következőn keresztül:


SKView.TextureFromNode Method

Definition

Overloads

TextureFromNode(SKNode)

Renders a texture from a SKNode.

TextureFromNode(SKNode, CGRect)

Renders a texture from a rectangle within SKNode.

TextureFromNode(SKNode)

Renders a texture from a SKNode.

[Foundation.Export("textureFromNode:")]
public virtual SpriteKit.SKTexture TextureFromNode (SpriteKit.SKNode node);
abstract member TextureFromNode : SpriteKit.SKNode -> SpriteKit.SKTexture
override this.TextureFromNode : SpriteKit.SKNode -> SpriteKit.SKTexture

Parameters

node
SKNode

Returns

Attributes

Applies to

TextureFromNode(SKNode, CGRect)

Renders a texture from a rectangle within SKNode.

[Foundation.Export("textureFromNode:crop:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual SpriteKit.SKTexture TextureFromNode (SpriteKit.SKNode node, CoreGraphics.CGRect crop);
abstract member TextureFromNode : SpriteKit.SKNode * CoreGraphics.CGRect -> SpriteKit.SKTexture
override this.TextureFromNode : SpriteKit.SKNode * CoreGraphics.CGRect -> SpriteKit.SKTexture

Parameters

node
SKNode
crop
CGRect

Returns

Attributes

Applies to