The texture used to draw the sprite.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
If the value is
nil, the sprite is drawn as a colored rectangle using its
color property. Otherwise, the texture is used to draw the sprite. The related properties affect how the texture is applied.
SpriteKit automatically generates a texture for sprites when they are initialized with