Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curvy Line Renderer for UI Spline?
#1
Trying to use the Curvy UI Spline, but I can't seem to get it to draw in the game view on my canvas no matter what? 

I have the following setup on my game object

- Curvy UI Spline with spline drawn
- Line Renderer
- Curvy Line Renderer

I can see the spline in the scene view if I select it, but nothing shows up in game view?

Any idea how I can make it visible?

Thanks in advance,
Mike W
Reply
#2
Hi
A Curvy Line Renderer attached to your Curvy UI Spline should make it visible ingame. This is how the spline is drawn in example scene 04_PaintSpline. Do you notice anything helpful by looking at that example scene?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
It's strange, I managed to get it to display in a test scene, but when I copied the setup to the main scene they aren't visible in game view again for some reason. It's very strange.

The object has the following components:
- curvy UI spline
- line renderer
- curvy line renderer

Everything is on the UI layer (canvas, ui elements, spline)

It is visible in the scene view, but the game view doesn't draw it? Very confusing

aha figured it out - the canvas in the test scene I had set to screenspace - camera, the other one is overlay
Reply
#4
Glad to know that the issue is solved.
If and when you feel like it, please leave a review for the asset, that helps a lot.
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.
Reply
#5
Hi,

I've just run into the same issue. It looks like the Curvy line renderer isn't compatible with an overlay canvas so is only visible in the scene view or if you have a perspective camera pointed directly at the canvas that contains your spline.

Is there a work around for this or it hasn't been implemented yet?

Thanks,
Kate
Reply
#6
Hi,

Curvy Line Renderer is compatible with UI Splines and overlay canvas. Here is a simple test scene I just made, where they all work fine together. If by looking at the provided scene you don't detect any error in your setup, then please send me a scene reproducing your issue.

I hope that this helped, and have a nice day


Attached Files
.unity   Overlay UI Spline.unity (Size: 34.66 KB / Downloads: 3)
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#7
(10-29-2024, 10:19 AM)_Aka_ Wrote: Hi,

Curvy Line Renderer is compatible with UI Splines and overlay canvas. Here is a simple test scene I just made, where they all work fine together. If by looking at the provided scene you don't detect any error in your setup, then please send me a scene reproducing your issue.

I hope that this helped, and have a nice day
Hey

Looking at your test scene, it does not look like it's actually being drawn by the canvas in the overlay screenspace. If it was, the Panel would be behind the spline (as it's higher in the hierarchy). Also, moving the camera would not affect it at all. Changing shaders didn't affect this.
   

Does Curvy Spline support drawing in a canvas as a UI element? I'm just wondering if I have to do a custom workaround.
Reply
#8
Hi m4a44,
Sorry for not validation promptly.
Indeed, you are right, there is an issue. I modified CurvyLineRenderer to fix the issue. I still need to work on it further to optimize it, and test it against edge cases, at which point I will make it part of the next update. Until then, I will send you the fixed version in your PMs.
Please let me know if you find any issues with it.
Thank you again for your patience, and 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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 3,071 07-29-2025, 09:15 PM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 1,651 06-07-2025, 09:44 AM
Last Post: _Aka_
  Filling a closed spline dynamically rickgplus 1 1,684 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 1,312 02-03-2025, 09:34 AM
Last Post: _Aka_

Forum Jump: