pixijs / layers

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

Uncaught TypeError: renderer.incDisplayOrder is not a function #105

Open vvl1mm opened 6 months ago

vvl1mm commented 6 months ago

using this, when i do app.stage = new Stage(); it gives me this error, i have not found anything about it and i appreciate any help

ivanpopelyshev commented 6 months ago

Which version of pixi do you use with it? Probably because "renderer" wasnt patched somehow, that means there are two pixi-'s in your node_modules, one yours and one from pixi-layers, and pixi-layers patched wrong pixi

re-installing deps and checking everything usually helps

vvl1mm commented 6 months ago

i have pixi downloaded as single pixi.js file added in html and the layers is via npm install, might that be the issue? im using pixi.js - v7.3.2

ivanpopelyshev commented 6 months ago

You have to use pixi-layers.umd , it exists in node_modules, just copy that file, and include same way in your html . It is specially for us , old-timers :)

ivanpopelyshev commented 6 months ago

One moment, i dont see it in npm : ( gonna check again

ivanpopelyshev commented 6 months ago

https://www.npmjs.com/package/pixi-layers?activeTab=code

dist/pixi-layers.js in your node_modules/@pixi/layers - that's the file you need

vvl1mm commented 6 months ago

thanks, that solved the problem :) i appreciate your help alot