Jump to content

PIXI.ParticleContainer and Spine


lars
 Share

Recommended Posts

Im trying to use a spine in a PIXI.Particlecontainer with no luck ?

 
const sprites = new PIXI.ParticleContainer(100, {
            scale: true,
            position: true,
            rotation: true,
            uvs: true,
            alpha: true,
        });
       app.stage.addChild(sprites);




const mImgSpine = new PIXI.spine.Spine(this.mpAssets.con);


  sprites.addChild(mImgSpine); // this fails

 

Getting the error: Cannot read property 'baseTexture' of undefined

Anyone knows if it's possible or its just a stupid idea ? 

 

It works fine with a sprite:  

const mImg = PIXI.Sprite.from(this.image);

sprites.addChild(mImgSpine); // this fails

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...