프로젝트
GitHub에서 보기
bfanger/pixi-inspector
소개
PixiJS 개발자 도구
개발 도구What you can do
- Show the scene graph
- View and edit properties
- Double-click in the outliner to console.log a node
- Outline the active node in the viewport.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPixiJS Devtools
Browser extension to debug games and apps written with PixiJS.
Features
- Show the scene graph
- View and edit properties
- Double-click in the outliner to console.log a node
- Outline the active node in the viewport.
- The active node is available in the developer console as
$pixi - Right-click (or alt click) in the viewport to activate a node
Installation
Install PixiJS Devtools from:
Usage
PixiJS
In your code find where the PIXI.Application instance is created, it looks like this:
import { Application } from "pixi.js";
const app = new Application(...)
Expose that app to the PixiJS Devtools by adding the line:
globalThis.__PIXI_APP__ = app;
or depending on your TypeScript and ESLint configuration:
(globalThis as any).__PIXI_APP__ = app; // eslint-disable-line
Phaser
In your code find where the Phaser.Game instance is created, it looks like this:
import Phaser from "phaser";
const game = Phaser.Game(...)
Expose that game to the PixiJS Devtools by adding the line:
globalThis.__PHASER_GAME__ = game;
Custom setup?
If you don't use a PIXI.Application or Phaser.Game?
you can specify the root-node manually with:
globalThis.__PIXI_STAGE__ = yourContainer;
And to enable highlighting and selecting the nodes in the viewport add:
globalThis.__PIXI_RENDERER__ = yourRenderer;
관련 프로젝트 살펴보기
불러오는 중…