reshapeSprite(layer,id,properties) , method of scene

Change the geometry of a sprite.

Parameters:
name type description
layer int layer of the world (must be >= 0)
id int the identifier
properties …Object each with parameter values, e.g. {“width”:10, “radius”:20}
// change the height of Sprite 1 on layer 0

UB.scene.reshapeSprite(0,1,{height:100});

See all methods of the api.