Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline editing questions
#5
(12-03-2021, 10:29 PM)_Aka_ Wrote: I might be wrong (I am not the one who wrote that code in the first place), but my tests lead me to believe that the selection is handled by Unity, as long as the drawing is done in a OnDrawGizmos method using methods from the Gizmos class.

I have a unreleased API method that gets the nearest point from a ray. I haven't tested it and optimized it properly yet. I attached it to this post. This code was written some time ago, so it might not build with the latest version. If it is the case, and you can't fix the build yourself, let me know so I can help.

Did this help?

Thanks, it is very helpful! I will try out your script at weekend
Reply


Messages In This Thread
Spline editing questions - by giollord - 12-03-2021, 10:51 AM
RE: Spline editing questions - by _Aka_ - 12-03-2021, 12:28 PM
RE: Spline editing questions - by giollord - 12-03-2021, 06:52 PM
RE: Spline editing questions - by _Aka_ - 12-03-2021, 10:29 PM
RE: Spline editing questions - by giollord - 12-04-2021, 06:36 AM
RE: Spline editing questions - by _Aka_ - 12-04-2021, 02:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: