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
  [Volume Spot]Fits the End Features mydayz 1 129 11-20-2021, 01:30 PM
Last Post: _Aka_
Information How to tell volume spot to ignore mesh bound? MarioBag 3 219 11-17-2021, 12:04 PM
Last Post: _Aka_
  Volume Spots and Distance from generator topquarkone 5 603 09-16-2021, 08:17 PM
Last Post: _Aka_
  Have generator run only once topquarkone 6 659 09-14-2021, 02:05 AM
Last Post: topquarkone

Forum Jump: