Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline Controller and Editor Scripts: changes not saved
#2
Hm, that's strange. If you touch the inspector, OnValidate() is called, that's the only difference in my code. Also, the inspector marks the object dirty, so Unity serialization knows about it. But as setting InitialPosition() touches a field flagged as serialized, Unity should handle that as well when called from code.

If you run your script, does Unity sets the scene dirty (* after the scene name in the titlebar)? If not, that's the cause of the issue. Btw, what Unity version you're using?
Reply


Messages In This Thread
RE: Spline Controller and Editor Scripts: changes not saved - by Jake - 05-26-2016, 11:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: