Hello Guest

Author Topic: Sprite Collection won't save changes that are committed in the edit window  (Read 5468 times)

Drew

  • Newbie
  • *
  • Posts: 1
    • View Profile
Since moving to unity 3.5 and 2d Toolkit 1.56, I've noticed that changes I make to padding (or anything) in the tk2d edit window aren't saved. The changes do commit, but if I close unity and open it again, all the changes are forgotten. I haven't seen anybody else mention it, so possibly its just related to my project.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Collection won't save changes that are committed in the edit window
« Reply #1 on: February 24, 2012, 09:05:06 am »
This has been fixed and will be in the next version. It is indeed strange that no one reported it sooner, it is not related to your project.

If you would like to fix it locally before 1.57 is released (should be real soon now), all you need to do is in
tk2dSpriteCollectionEditorPopup.cs

Code: [Select]
    void OnGUI()
    {
                ...
// GUI changed
if (GUI.changed)
{
EditorUtility.SetDirty(gen);
}

EditorGUILayout.EndVertical();
EditorGUILayout.EndHorizontal();
    }

You will need to add those Gui changed lines in there.

Cheers,
unikron