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

[ts][pixi-v8] Add removeSlotObjects function #2696

Open
Zyie opened this issue Nov 26, 2024 · 1 comment
Open

[ts][pixi-v8] Add removeSlotObjects function #2696

Zyie opened this issue Nov 26, 2024 · 1 comment

Comments

@Zyie
Copy link

Zyie commented Nov 26, 2024

It would be great if there was a removeSlotObjects which removed all slot objects easily.
This would be consistent with pixi and its addChild, removeChild, removeChildren API

The implementation could be something like this:

public removeSpineObjects() {
  this.removeChildren();
  this._slotObjects = {}
}

I'm happy to do the PR if this is something you would like adding

@davidetan
Copy link
Collaborator

Hello!

I don't really know how much the slot objects feature is used, but it seems that Pixi users love it :D

I guess it might be handy to add removeSlotObjects.
You can definitely go on with the PR.
Maybe have a look at the pixi masks that are created when there are slot objects and a clipping attachment is active. Even though they should clean themselves automatically.

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

No branches or pull requests

2 participants