Spine clipping mask problem in playcanvas

I created animation in spine with clipping mask. After import to playcanvas these files and tried to run animation, I’m getting this error;

TypeError: Cannot read property ‘texture’ of undefined
at t.initAttachment (http://launch.playcanvas.com/api/assets/files/Scripts/Library/playcanvas-spine.min.js?id=27919451&branchId=a171ac64-c8db-441f-8ca3-219148ce95ba:3:147858)
at t.updateSlot (http://launch.playcanvas.com/api/assets/files/Scripts/Library/playcanvas-spine.min.js?id=27919451&branchId=a171ac64-c8db-441f-8ca3-219148ce95ba:3:152063)
at t.update (http://launch.playcanvas.com/api/assets/files/Scripts/Library/playcanvas-spine.min.js?id=27919451&branchId=a171ac64-c8db-441f-8ca3-219148ce95ba:3:153211)
at t.onUpdate (http://launch.playcanvas.com/api/assets/files/Scripts/Library/playcanvas-spine.min.js?id=27919451&branchId=a171ac64-c8db-441f-8ca3-219148ce95ba:3:155360)
at Function._helper (https://code.playcanvas.com/playcanvas-stable.dbg.js:24546:14)
at Function.update (https://code.playcanvas.com/playcanvas-stable.dbg.js:24554:10)
at Application.update (https://code.playcanvas.com/playcanvas-stable.dbg.js:23988:24)
at Application.tick (https://code.playcanvas.com/playcanvas-stable.dbg.js:24343:11)
at Application.start (https://code.playcanvas.com/playcanvas-stable.dbg.js:23977:10)
at http://launch.playcanvas.com/editor/scene/js/launch.js:7250:25

Any idea?

Hi @tomkubur,

None of the links seem to be working, could you post a sample project to take a look?

Hi @Leonidas,

I create a sample project and add two different animations. Problem in “SpinePortalAnimation”.


Thank you.

Thanks @tomkubur, it seems to be most likely an unsupported by the Playcanvas Spine loader feature.

This line seems to be complaining, of an attachment with an undefined region, @max may be able to give some insight:

Thanks @Leonidas, I’m waiting for solutions. :slightly_smiling_face:

Yeah, normally that line throws an exception because of an unsupported attachment type. I think the PlayCanvas Spine runtime needs a little work to fix cases like this.

1 Like

Do you have any plan about to fix this issue? @will

Hello @Leonidas, it’s me again.

We looking forward to hearing something from you. :slight_smile:

Hey @tomkubur,

Try raising an issue/feature request on the Playcanvas Spine repo about it:

1 Like

Thanks I will.

1 Like