(02-29-2020, 11:19 PM)_Aka_ Wrote: Hi,
- I am looking into this
- The documentation of OnValidate says: "This function is called when the script is loaded or a value is changed in the Inspector". So your error happens when executing OnValidate when script is loaded, because the Curvy Generator modules are not ready yet. Add this at the start of your OnValidate and it should work
Code:if (isActiveAndEnabled == false)
return;- If by different you mean displayed differently, then
(02-23-2020, 12:01 AM)_Aka_ Wrote:But if you mean that the actual value is different, then it's normal, it's two different scripts and the values have different meanings. You can synchronize them in your own script using the API if this is what you want
- The difference between ShapeExtrusion's Range and SplineController's Position is that they don't use the same property drawer. The latter uses RangeEx, an extension of the Range attribute, that allows for dynamic values
Thanks for the reply.
How can I sync Shape Extrusion Range value and Spline Controller Position value by your API ? I want same values, because I want to compare player position with start and end of that speed pad.
(02-29-2020, 11:46 PM)_Aka_ Wrote: So, about issue number 1 : your problem is the same as in this thread. The link has an explanation of the issue and its solution. The only difference is that in your case Unity stopped the destruction quietly, without showing the error message.
I didn't find any solutions in that topic. That last post in that topic hides all meshes which are generated by Curvy and it doesn't work.