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

Problems using PIXI.Application #98

Closed
roman-kripton opened this issue Mar 6, 2023 · 8 comments
Closed

Problems using PIXI.Application #98

roman-kripton opened this issue Mar 6, 2023 · 8 comments

Comments

@roman-kripton
Copy link

Hello, I've run into this problem. What if I don't use PIXI.Application ?
image

@bfanger
Copy link
Owner

bfanger commented Mar 6, 2023

Set __PIXI_APP__ to an object that looks like an PIXI.Application

May I ask why you dont use an Application?

@Outfire
Copy link

Outfire commented Mar 6, 2023

Hi. Thank you for the great extension.
I also don't use an Application. Because we have our structure for rendering object. All what I can is provide root container for rendering.
Do you need only stage from an Application or any other additional infoarmation and methods?

@Outfire
Copy link

Outfire commented Mar 6, 2023

I found that you need "stage" or in my case root container, renderer for "width, height, resolution" and "view" which you also can take from renderer.
Created an object with these three values and everything is works now.
And new design is not for me, previous one had more funcionality)

@MaksimPozharskiy
Copy link

I did as advised @Outfire , instead of app I put stage and devtools started working.

But the items are not showing.
P.S. I'm not using the latest version of Pixi , i use v2.2.9
image

@Tezza48
Copy link

Tezza48 commented Mar 6, 2023

This is also an issue for me, It's pretty common that PIXI apps don't use Application. As per the docs it's only a convenience class.

https://pixijs.download/release/docs/PIXI.Application.html

It boots up some stuff that we just don't need or have alternatives for.

Something quick and helpful would be pulling out your required fields from Application instead and a suggestion in Instructions.svelte.

Something like

globalThis.__PIXI_APP__ = {
    stage: ...,
    renderer: ...,
    ...
}

@goldenratio
Copy link

goldenratio commented Mar 6, 2023

Hey,
Thanks for the update and moving to Svelte :D nice stuff.
is it worth checking for window.PIXI to be backwards compatible?
https://github.com/bfanger/pixi-inspector/blob/v0.9.6/src/services/DevConnection.js#L12

@gatsinski
Copy link

I've tested 5459a57 locally and it works like a charm. Thanks, @bfanger for the quick response.

@bfanger
Copy link
Owner

bfanger commented Mar 8, 2023

2.1.0 is submitted to the chrome store

@bfanger bfanger closed this as completed Mar 8, 2023
bfanger pushed a commit that referenced this issue Mar 18, 2023
Adds a "Patch render engine" button.
Which makes playing with the examples easier.

#98
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

7 participants