Sign in to follow this  
Noturnoo

What is the best way to distribute Pixi.Container in different Divs (html elements)?

Recommended Posts

 

Example, I have 6 divs inside my body, and wanted to add a container for each div:
eg.: <div id = "one"> Pixi.Container 1 </ div>, 
<div id = "two"> Pixi.Container 2</ div>,

..... 
<div id = "six"> Pixi.Container 6 </ div>

and so on, is there a way to do this without having to instantiate several Pixi App?

Share this post


Link to post
Share on other sites

Instantiate several renderers instead. Application is a mashup class that you have to rewrite if you have different set of components: https://github.com/pixijs/pixi.js/blob/dev/src/core/Application.js

This article is correct in everything except "interactionManager", its actually embedded into renderer: https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.