You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling setFrame will modify the width and height properties of your Game Object.
I guess it's sometimes desirable, but it would be great to have control over this, by passing an argument to the function. My use case: buttons of variable width, that are therefore made using tileSprites. I use setFrame() to change the appearance of the buttons when clicking or hovering them. The automatic change of dimensions messes it up entirely, unfortunately.
The text was updated successfully, but these errors were encountered:
As pulled from the doc,
I guess it's sometimes desirable, but it would be great to have control over this, by passing an argument to the function. My use case: buttons of variable width, that are therefore made using
tileSprites
. I usesetFrame()
to change the appearance of the buttons when clicking or hovering them. The automatic change of dimensions messes it up entirely, unfortunately.The text was updated successfully, but these errors were encountered: