Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature request: SplineController.Position as inspector property
#4
The fundamental issue with making Position visible in the inspector (and consequently in the animation window) is that Position is a property, not a serialized field, and Unity does not display properties in the inspector.

Making Position a serialized field would need structural changes in the SplineController class (and other similar classes) to keep thinks clear and coherent from an API point of view, and from an UI based workflow point of view. Just to give you a glimpse of the issues, if Position is made a serialized field, then RelativePosition and AbsolutePosition need to become serialized fields too. Which means the code now needs to synchronize the values of all these fields (plus the mTF field currently used) to keep everything coherent. This is not impossible to do of course, but the ratio benefice/time_needed is too low compared to other tasks in the backlog.

Last night, while thinking about this, I was planning to end this post with a workaround for you and other people in your situation, but what you posted is already a very good workaround, so no need for me to add to it anything. Thanks for having shared this with the other Curvy users.

Sorry for my disappointing answer, but please keep in mind that other features/fixes/optimizations will be done instead.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Feature request: SplineController.Position as inspector property - by _Aka_ - 01-18-2018, 01:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  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_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  How could I get position in spline from "From" value in BuildRasterizedPath? Chanon 1 8 02-12-2024, 09:54 PM
Last Post: _Aka_

Forum Jump: