9 slice scaling in Sprite Kit -


does sprite kit have equivalent 9 slice scaling sprites?

i have tried googling, not finding anything, but... it's feature goes different names in different frameworks. missing it.

spritekit supports 9-slices.

https://developer.apple.com/library/ios/documentation/graphicsanimation/conceptual/spritekit_pg/sprites/sprites.html#//apple_ref/doc/uid/tp40013043-ch9-sw10

the document doesn't tell set size won't work without it, here is:

skspritenode *button = [skspritenode spritenodewithimagenamed:@"stretchable_button.png"]; button.centerrect = cgrectmake(12.0/28.0, 12.0/28.0, 4.0/28.0, 4.0/28.0); button.size = cgsizemake(100.0, 50.0); 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -