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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manipulate Generator properties in c#? blabz2007 9 129 06-18-2021, 09:17 AM
Last Post: _Aka_
  Accessing generator's input spline in script, changing it at runtime smackledorf 3 90 06-17-2021, 01:59 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 189 06-09-2021, 12:42 PM
Last Post: _Aka_
  Compilation issues for iOS with a scene containing generators puzzlekings 2 229 05-13-2021, 06:53 PM
Last Post: _Aka_

Forum Jump: