Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Odd behavior when drawing spline
#11
I decided to resurrect this post as I was working on my game today... it triggered a thought and I thought I'd mention it from what you said earlier in this post several months ago:

"Your post highlighted to me the need to improve this part of Curvy Splines. I am planning to do so in the future."

So my idea - maybe it's only applicable to my scenario:

What if you added an option that when a spline is drawn in the scene, it could be added as a child to an object in the scene by default if no other object in the hierarchy is selected?
  • If the option isn't set, Curvy continues to work as it always has with the spline positioned 10 units from the camera.
  • If an object is selected in the hierarchy, it would be relative to that object.
  • If no object is selected in the hierarchy and the option is set, it would be relative to the specified "default" object.

I'm basically doing the 3rd option myself - I have an empty game object positioned in the scene (Position 0,0,0 but it could be anywhere) that I select in the hierarchy before drawing a spline.  I then place my control points in the scene, which creates the spline object as a child to the empty game object, and the control points as children to the spline.  The user might want to keep the parent object... or they could pull the created spline out of the empty parent container where it maintains it's relative scale.

Does that make any sense?  Just a possible idea, maybe it fits and maybe it doesn't.  Smile
Reply
#12
Your idea for sure makes sense, thanks for sharing it. The question is "Is there a better idea?". That would be part of the work on the feature. Sometimes, adding a lot of options that fit specific cases brings more negatives than positives, including a more complex implementation (bug prone) and hard to get familiar with UI. For this reason, a unique simple solution is prefeberal. But there are rarely a one size fits all solution for all problems. So specific options are still necessary. Finding the right balance is part of the job. I will definitely consider your idea when working on this issue. Thanks again.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1 05-14-2024, 04:52 PM
Last Post: _Aka_
  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_

Forum Jump: