Hi, everyone. I want to realize the map function in Unity2D mode.
Now I have realized the level map and path by CurvyUISpline+CurvyLineRenderer.
But now I have a problem, I want to achieve when I reach the fifth level, the path in front of the level is a solid line, but the path after the fifth level is a dotted line, I do not know how to achieve, I hope you can provide a detailed idea, thank you
Hi
Sorry but I am missing information to be able to help you. Can you please attach screenshots or drawings explaining what is the current situation and what is the expected behavior?
Thanks
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
(07-05-2023, 10:59 AM)_Aka_ Wrote: Hi
Sorry but I am missing information to be able to help you. Can you please attach screenshots or drawings explaining what is the current situation and what is the expected behavior?
Thanks
Thank you for your reply。
How can I use CurvyLineRenderer to achieve a line segment like the one in the picture
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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
(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?
There is an easier way to do it: using the Curvy Generator and its Create Path Line Renderer module. This module takes as an input a Path, which can be made from a spline while defining the start/end CPs.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
(07-07-2023, 12:01 PM)_Aka_ Wrote: There is an easier way to do it: using the Curvy Generator and its Create Path Line Renderer module. This module takes as an input a Path, which can be made from a spline while defining the start/end CPs.
(07-10-2023, 10:42 AM)_Aka_ Wrote: You are welcome
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Hi,I have a new problem
When I reach the third level, I want the solid line to be slowly filled to the third level, but through the Start/End CPs dynamic setting of line segment display, the solid line is directly displayed to the third level, may I ask if there is any way to achieve the solid line to be slowly filled to the third level?
Similar to Dotween animation.