Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request] Control over whether setFrame() changes the dimensions of a gameObject #3339

Closed
Jerenaux opened this issue Mar 6, 2018 · 0 comments

Comments

@Jerenaux
Copy link

Jerenaux commented Mar 6, 2018

As pulled from the doc,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant