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?
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
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.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
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: 0)
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_
  Left-right movement, and spline follow shihaya 3 10 07-12-2024, 12:50 PM
Last Post: _Aka_
  How to start volume spots at the end of spline instead of front j95677 1 5 07-07-2024, 04:58 AM
Last Post: _Aka_

Forum Jump: