spriteWidthPixels property

int? spriteWidthPixels
getter/setter pair

The width of sprite in pixels.

Must be an even integer. To preserve the source aspect ratio, set the SpriteSheet.sprite_width_pixels field or the SpriteSheet.sprite_height_pixels field, but not both (the API will automatically calculate the missing field).

Required.

Implementation

core.int? spriteWidthPixels;