Initializes a textured sprite using an image file.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The name of an image file stored in the app bundle.
A newly initialized sprite object.
This method creates a new texture object from the image file and assigns that texture to the
texture property, the
normal properties is set to
size property of the sprite is set to the dimensions of the image. The
color property is set to white with an alpha of zero