Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline object on a spline path
#20
(02-29-2020, 11:19 PM)_Aka_ Wrote: Hi,
  1. I am looking into this
  2. 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;
  3. If by different you mean displayed differently, then
(02-23-2020, 12:01 AM)_Aka_ Wrote:
  1. 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
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

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.
Reply


Messages In This Thread
Spline object on a spline path - by ATHellboy - 02-11-2020, 01:14 PM
RE: Spline object on a spline path - by _Aka_ - 02-14-2020, 10:47 AM
RE: Spline object on a spline path - by ATHellboy - 02-16-2020, 04:54 AM
RE: Spline object on a spline path - by _Aka_ - 02-16-2020, 08:08 PM
RE: Spline object on a spline path - by ATHellboy - 02-17-2020, 09:43 AM
RE: Spline object on a spline path - by _Aka_ - 02-17-2020, 11:56 AM
RE: Spline object on a spline path - by _Aka_ - 02-17-2020, 12:16 PM
RE: Spline object on a spline path - by ATHellboy - 02-17-2020, 12:32 PM
RE: Spline object on a spline path - by ATHellboy - 02-19-2020, 03:21 PM
RE: Spline object on a spline path - by _Aka_ - 02-20-2020, 01:33 AM
RE: Spline object on a spline path - by ATHellboy - 02-20-2020, 05:45 AM
RE: Spline object on a spline path - by _Aka_ - 02-23-2020, 12:01 AM
RE: Spline object on a spline path - by ATHellboy - 02-23-2020, 04:41 AM
RE: Spline object on a spline path - by ATHellboy - 02-23-2020, 07:19 AM
RE: Spline object on a spline path - by _Aka_ - 02-25-2020, 12:11 AM
RE: Spline object on a spline path - by _Aka_ - 02-25-2020, 12:17 AM
RE: Spline object on a spline path - by ATHellboy - 02-26-2020, 03:44 PM
RE: Spline object on a spline path - by _Aka_ - 02-29-2020, 11:19 PM
RE: Spline object on a spline path - by _Aka_ - 02-29-2020, 11:46 PM
RE: Spline object on a spline path - by ATHellboy - 03-01-2020, 09:30 AM
RE: Spline object on a spline path - by _Aka_ - 03-01-2020, 03:12 PM
RE: Spline object on a spline path - by ATHellboy - 03-01-2020, 04:37 PM
RE: Spline object on a spline path - by _Aka_ - 03-01-2020, 05:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 4 17 18 minutes ago
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
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_

Forum Jump: