Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spot Generator resetting some values after Script compilation
#11
Awesome , that fixed the problem. I think the issue was because of OnAfterDeserialize() when unity automatically called the implementation of  UnityEngine.ISerializationCallbackReceiver it was resetting translation, rotation and scale values because of version was null for first time only.

Your outstanding support and effort you putting is really priceless, thanks for every second you spent  on it. much appreciated  Big Grin
Reply
#12
(05-24-2021, 03:30 PM)Mos Def Wrote: Terribly sorry for That 

It's ok, we all make mistakes, me being the first one otherwise you would not have found that bug Smile

(05-25-2021, 05:16 AM)Mos Def Wrote:  I think the issue was because of OnAfterDeserialize() when unity automatically called the implementation of  UnityEngine.ISerializationCallbackReceiver it was resetting translation, rotation and scale values because of version was null for first time only.

Yep, this is what is happening. The issue is not visible with modules created via the UI. It becomes visible with modules created via API, and in scenarios like yours where you set a value before any deserialization call (like for example when you modify anything via the inspector)

(05-25-2021, 05:16 AM)Mos Def Wrote: Your outstanding support and effort you putting is really priceless, thanks for every second you spent  on it. much appreciated  Big Grin


Thank you
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rotate generator asteroids patndan74 6 3,351 05-08-2025, 10:07 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,601 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,461 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 1,359 07-26-2024, 10:07 AM
Last Post: _Aka_

Forum Jump: