pixijs / layers

Separate the z-hierarchy of your scene tree from its canonical structure.
https://pixijs.io/layers/docs/
MIT License
224 stars 57 forks source link

No output with webworkers #98

Open scott-cornwell opened 1 year ago

scott-cornwell commented 1 year ago

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 commented 1 year ago

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()