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

setScaleMode won't take effect #4413

Closed
jcyuan opened this issue Mar 8, 2019 · 2 comments
Closed

setScaleMode won't take effect #4413

jcyuan opened this issue Mar 8, 2019 · 2 comments

Comments

@jcyuan
Copy link
Contributor

jcyuan commented Mar 8, 2019

I think currently this feature is not availabe yet right? as I found that Components.ScaleMode is not used anywhere for example in pipeline.

@jcyuan
Copy link
Contributor Author

jcyuan commented Mar 8, 2019

example

const obj = this.add.image(....);
obj.scaleMode = Phaser.ScaleModes.NEAREST;
obj.setScale(100, 100);   // test

no change, still LINEAR mode.
and I have to use this way:

obj.texture.setFilter(Phaser.Textures.FilterMode.NEAREST);

and works with this way.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

JasonHK pushed a commit to JasonHK/phaser that referenced this issue Jun 4, 2019
…d along with it the `scaleMode` property and `setScaleMode` method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix phaserjs#4413
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

2 participants