SKView.TextureFromNode 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.
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