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

Texture has no way to remove an existing Frame #4460

Closed
BigZaphod opened this issue Apr 6, 2019 · 3 comments
Closed

Texture has no way to remove an existing Frame #4460

BigZaphod opened this issue Apr 6, 2019 · 3 comments

Comments

@BigZaphod
Copy link
Contributor

Phaser: 3.16.2

Texture does not have a function to remove an existing frame, and Frame's destroy() function does not appear to remove the Frame instance from the source texture, either.

@photonstorm
Copy link
Collaborator

True. This is a highly unusual requirement though.

@BigZaphod
Copy link
Contributor Author

I only discovered this when looking for a workaround for #4459. I was procedurally generating an atlas, and the way I had stuff working ended up causing it to re-add the same frame names to the CanvasTexture again as part of that process.

@photonstorm
Copy link
Collaborator

Thank you for submitting this feature request. We have implemented this and the feature 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.

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