Hello Guest

Author Topic: Spine and Platform specific sprite collections  (Read 3607 times)

M.O.

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Spine and Platform specific sprite collections
« on: August 20, 2013, 09:29:31 pm »
 Hello all I dont't know if anyone else is having problems getting spine skeletons to work with Platform specific sprite collections, but I am. Here is a link to the esoteric software thread that I am participating in: http://www.esotericsoftware.com/forum/viewtopic.php?f=3&t=514. Basically when I set up my skeleton for the multiple platforms, I use the 1x images (I leave off the 1x on the images). Than set up my sprite collections in unity. Unfortunately I am getting an array index is out of range error. When I set up the skeleton without support for platform specific sprite collections everything works great. Does anyone have any clue why this would be happening? Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Spine and Platform specific sprite collections
« Reply #1 on: August 20, 2013, 11:25:02 pm »
I've not looked at the spine integration code recently,
but it should probably be doing spriteCollection.inst.spriteDefinitions instead of
spriteCollection.spriteDefinitions

normally inst == this, but with platforms, that is not the case. Its probably worth changing all other occurances of spriteCollllection.XXX -> spriteCollection.inst.XXX

M.O.

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Spine and Platform specific sprite collections
« Reply #2 on: August 21, 2013, 01:20:55 am »
 Thanks that appears to work! :D