pixi-react icon indicating copy to clipboard operation
pixi-react copied to clipboard

Feature Request: Is It possible to change PIXI application to a custom one for compatibility

Open mathedu4all opened this issue 2 years ago • 1 comments

Description

Since in wechat browser(a chinese chatting app), do not provide full features like web browser. so there is a lot of trial of using pixi.js in wechat,

https://github.com/pixijs/pixijs/issues/5459

https://github.com/skyfish-qc/pixi-miniprogram

Is it possible to use pixi-react with a customized PIXI global variable provided?

mathedu4all avatar Mar 10 '23 07:03 mathedu4all

Hey @mathedu4all you could do a couple of things here.

  1. Don't use Stage but use the custom render method into a Container of your own custom Application: https://pixijs.io/pixi-react/render/#custom-render-call
  2. Create your own Stage component by forking the existing one and replace the PIXI.Application with whatever you need

baseten avatar Mar 13 '23 13:03 baseten