Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have a question about curvySpline
#5
(07-06-2023, 10:26 AM)_Aka_ Wrote: Hi
CurvyLineRenderer is a class that synchronises a Curvy Spline with a Unity's LineRenderer. The display is defined by the LineRenderer. So to have a dotted line with a CurvyLineRenderer, you need to configure the LineRenderer to display a dotted line. Surely you can find this information online, on Unity's forums and whatnot. I guess this is doable by setting a dotted material to the LineRenderer.
I hope this helped.
Have a nice day

Thank you for your reply。
Suppose I have a line segment of 10 points drawn on the screen using CurvyLineRenderer, and I want to set it dynamically at run time for example 1-4 points connected by line segment 1, 5-10 points connected by line segment 2, and after I trigger some condition become 1-5 connected by line segment 1 and 6-10 connected by line segment 2.
I now the idea is to get a point in the whole period of the percentage of the line segment, and then through curvySpline. GetPositionsCache () to get the result of multiply this percentage, then the results will be assigned to LineRenderer to draw. How do I get this percentage? Or do you have a better way to do it?
Reply


Messages In This Thread
RE: I have a question about curvySpline - by haifeng.huang - 07-07-2023, 03:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question about Timeline support GhuaGhua 0 0 Yesterday, 12:36 PM
Last Post: GhuaGhua
  Newbie Question: Uniformly increase spacing between volume spots? SAMYTHEBIGJUICY 1 5 09-01-2023, 03:38 PM
Last Post: _Aka_
  "Deadloop in CurvySPline.Refresh" spam Valkymaera 3 11 05-30-2023, 10:56 AM
Last Post: _Aka_
  Question about generator Mos Def 7 1,807 04-10-2023, 10:20 PM
Last Post: _Aka_

Forum Jump: