The current crop values of the clip.
Sets the crop values for the clip's sprite. This will clip the original texture to the given coordinates.
If the sprite is not a video, gif or image, it will not be updated.
If the sprite has no texture, or the texture is not valid, it will not be updated.
If updatePosition
is true, it will also update the position of the sprite, so that the cropped area will maintain it's visual position.
The left coordinate of the crop area
The top coordinate of the crop area
The right coordinate of the crop area
The bottom coordinate of the crop area
If true, it will also update the position of the sprite, so that the middle of the cropped area is at the same position as the middle of the original texture. Default is true.
Static
deserialize
Returns the current crop values of the clip. The returned array contains four numbers: [left, top, right, bottom]