Hello Guest

Author Topic: Lost connection to sprite collection  (Read 3899 times)

chris

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Lost connection to sprite collection
« on: June 03, 2012, 06:54:37 pm »
After restarting my computer the 2D tk components and menus were suddenly gone from Unity, but it was still working in the scene.

I reinstalled 2D tk, but now if I create a new sprite the reference to the collection is just empty.

Rebuilding the index does nothing.

How do I recreate the connection to my sprite collection?

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Lost connection to sprite collection
« Reply #1 on: June 04, 2012, 01:16:51 am »
Hi, the only reason I can think this happened is the script metadata got destroyed somehow, and the scripts connection is then lost. Perhaps something was moved from outside the interface (in the OS) or got deleted? If this happens, theres not much you can do, apart from "rewiring" all the sprites, as the script info has been lost.

Switch the inspector to debug mode, then drag the appropriate script into the script slot. Its tedious, but I don't think there is any other way to fix this unless you know exactly what caused it. Unity still stores all the relevant data, so nothing is really lost apart from the connection to the script.

chris

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Lost connection to sprite collection
« Reply #2 on: June 11, 2012, 01:32:22 pm »
I couldn't figure out how to reconnect the old sprites, but I could still create new ones by copying the old and modifying them.

Not ideal, but the project is almost done, so it'll do.

Thanks for the quick reply.