Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Components not refreshing
#5
About crossSpline's length being 0, the cause was that circle.Refresh(); needed to be called before. Here is the block of code after my modifications
Code:
// Create the circle cross section
       CurvySpline crossSpline = CurvySpline.Create();
       CSCircle circle = crossSpline.gameObject.AddComponent(typeof(CSCircle)) as CSCircle;
       circle.Radius = 1.005f;
       circle.Count = 10;
       circle.Refresh();
       crossSpline.Refresh();
       Debug.Log(crossSpline.Length);
       crossSpline.MaxPointsPerUnit = 10 / crossSpline.Length;
       crossSpline.Refresh();
       Debug.Log(crossSpline.MaxPointsPerUnit);
The exported mesh is still null though. I am still investigating
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Components not refreshing - by amccraw - 02-14-2020, 07:34 PM
RE: Components not refreshing - by _Aka_ - 02-14-2020, 11:08 PM
RE: Components not refreshing - by amccraw - 02-17-2020, 01:16 PM
RE: Components not refreshing - by _Aka_ - 02-19-2020, 12:36 AM
RE: Components not refreshing - by _Aka_ - 02-20-2020, 01:00 AM
RE: Components not refreshing - by _Aka_ - 02-20-2020, 01:09 AM
RE: Components not refreshing - by Diasporism - 04-09-2021, 01:17 AM
RE: Components not refreshing - by _Aka_ - 04-09-2021, 09:13 AM
RE: Components not refreshing - by Diasporism - 04-09-2021, 02:51 PM
RE: Components not refreshing - by _Aka_ - 04-09-2021, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to attach custom components to output Sacryn 3 7 02-23-2024, 09:42 AM
Last Post: _Aka_
  CurvyGenerator not refreshing until next frame when created. Lupos 2 7 06-08-2023, 12:12 PM
Last Post: _Aka_
  How to stop spline refreshing when a control point is deleted or removed? Beaver_Boy 4 10 07-23-2022, 11:24 AM
Last Post: _Aka_
  Adding a point, then refreshing the mesh results in wrong mesh for one frame Jellybit 2 7,779 02-17-2014, 05:29 PM
Last Post: Jellybit

Forum Jump: