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

No output with webworkers #98

Open
scott-cornwell opened this issue Apr 24, 2023 · 1 comment
Open

No output with webworkers #98

scott-cornwell opened this issue Apr 24, 2023 · 1 comment

Comments

@scott-cornwell
Copy link

I can get a sprite to display with Pixi 7.2 from a webworker, but when I put it on a layer the same way I did before it displays nothing. No errors returned.

@scott-cornwell
Copy link
Author

I think I got it working. It appears you have to do this now for layers in a webworker (not sure if this is true of Pixi 7 in general as well):

import { Stage } from '@pixi/layers'

app.stage = new Stage()

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