Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hello! How do I get objects to scale with Slline?
#4
Hi,
You code does what you needed to do. Of course there are always different ways to do a task, and depending on the context and your priorities, one way could be better than the other. So I will give you here some other ways I see to implement what you needed. You don't have to do it the way I will explain, but just be aware of this possible other way, it might be helpful in the future:

- You can set a script in each sphere to handle its scale, instead of having one that handles the scale of all of them. This per sphere script would look at which distance it is on the spline, and scale itself accordingly. This way the sphere near the start will be small, and the ones near the end will be big, automatically. So if you have to change the layout of the spheres, the scaling will be always correct, no need to change the scaling script
More usefull reading:
https://curvyeditor.com/documentation/splines/start#units
https://api.curvyeditor.com/520/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html#a4cdbbc267e3f040d7780ed984b191486
https://api.curvyeditor.com/520/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html#a6b4c1dbad9994ae36b2971b0fb50293a

- The flickering effect can be done by changing the transparency of the sphere material, through a C# script or even through shaders, instead of disabling the renderer

I hope this helped
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: Hello! How do I get objects to scale with Slline? - by _Aka_ - 05-10-2019, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Line Renderer between two objects on a spline travellinggamedev 1 7 01-13-2024, 10:39 AM
Last Post: _Aka_
  Removing the objects behind an object alms94 6 6 12-06-2023, 09:31 PM
Last Post: _Aka_
  Disable Generator Rasterized Objects SAMYTHEBIGJUICY 3 5 09-01-2023, 03:38 PM
Last Post: _Aka_
  Way to get objects script from generator Lupos 10 29 05-26-2023, 09:51 AM
Last Post: _Aka_

Forum Jump: