scale(to:)
Scales the sprite node to a specified size.
Declaration
func scale(to size: CGSize)Discussion
This method works by setting the sprite node’s xScale and yScale to achieve the specified size in its parent’s coordinate space.
Scales the sprite node to a specified size.
func scale(to size: CGSize)This method works by setting the sprite node’s xScale and yScale to achieve the specified size in its parent’s coordinate space.