Hello Guest

Author Topic: Changes to tk2dcamera in Editor not saving  (Read 8556 times)

edb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
Changes to tk2dcamera in Editor not saving
« on: October 13, 2016, 03:34:43 pm »
I'm using Unity 5.4.1f1 and noticed that changes I make to parameters in a tk2dcamera component in the Unity editor aren't being saved. 

You can test this by loading the tk2d demo scene "11 - camera and alignment" and make some changes to some parameters in the tk2dcamera.  It seems like the changes aren't causing the scene to be marked dirty.  If you toggle the tk2dcamera component off/on, though, the scene then seems to marked dirty.

Any workarounds?  Thanks.

pj83

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #1 on: October 15, 2016, 08:16:22 pm »
I also have this problem. My camera is ortho. I switch to perspective, save the scene, load another scene, but when I come back, it's ortho again.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #2 on: October 16, 2016, 08:43:46 pm »
Seems to be working for me - what version of tk2d are you using?

edb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #3 on: October 17, 2016, 02:45:55 pm »
Tk2d 2.5.6.  Unity 5.4.1f.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #4 on: October 23, 2016, 12:03:45 am »
This was fixed in 2.5.5 as far as I can tell - and I cant reproduce it in any other later versions. Can you zip up a simple repro project and post in the private support forum please? I will investigate.

edb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #5 on: October 23, 2016, 05:55:05 pm »
Posted a project in private support.

Ultroman

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #6 on: November 15, 2016, 08:58:32 pm »
Hello

I am having the same issue. Specifically when trying to set the "Auto scale" dropdown value on my wildcard override. It keeps going back to "Closest Multiple of 2", even though I set it to "Fit width" and save, and have done so multiple times. I just tested the solution posted by OP, that "If you toggle the tk2dcamera component or gameobject off/on, though, the scene then seems to marked dirty." It works perfectly.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #7 on: November 15, 2016, 10:15:16 pm »
Hiya,

I posted a fix in the private support forum - will issue a tk2d update soon to address this.
http://2dtoolkit.com/forum/index.php/topic,5439.0.html

Ultroman

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Changes to tk2dcamera in Editor not saving
« Reply #8 on: November 17, 2016, 11:25:59 pm »
Thanks a lot!