Jump to content

PixiJS Warning: [Assets] Asset id ./Assets/dragon-skeleton.atlas was not found in the Cache


andrenajordan
 Share

Recommended Posts

This is my code copied from pixi/opengames.

private spine: Spine;
    /** Inner container for internal animations */
    private container: Container;
 
    constructor() {
        super();
 
        this.container = new Container();
        this.addChild(this.container);
 
        this.spine = Spine.from({
            skeleton: './Assets/dragon-skeleton.json',
            atlas: './Assets/dragon-skeleton.atlas',
 
        });
        // this.spine.autoUpdate = true;
        this.spine.scale.set(0.3);
        this.spine.x = -30;
        this.spine.y = 130;
        this.container.addChild(this.spine);
        this.playIdle();
    }

and this one happened.
Asset id ./Assets/dragon-skeleton.atlas was not found in the Cache.
Cannot read properties of undefined (reading 'skeleton').

image.thumb.png.44a640c67480b6fa7c31f5e487569a40.png
I got a pixijs v8.1.15
Is there any help for me?

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...