Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hello! How do I get objects to scale with Slline?
Please forgive me for my English is not very skilled, I will use Google Translate to write articles..

Hello! How do I get objects to scale with spline?

I hope that the yellow sphere of Annex 1 will gradually increase in proportion as the spline approaches the end.

Just like the effect of Attachment 2.

Which parameter of the Generator script is to be modified, or how to write the script.
請問要修改 Generator 腳本的哪個參數,或著要如何撰寫腳本。

Finally, I want to know if I can make a flickering effect, and I don't have to do it like a video.

Thanks for reading this article, I hope to answer my question.

Attached Files Thumbnail(s)
[attachment=239][attachment=239]I use a very clumsy way to control zoom and flash,

I am a Unity beginner and can't write very deep scripts...

There is a misspelled word in the script, please forgive me..

Although it has achieved the effect I want, it is difficult to control.

Attached Files Thumbnail(s)
I modified the script, originally I used the multiplier method and changed to use the added method.

This method better controls the size of the object.

And change the flash time to turn flash.

I have successfully achieved the effect I want, but is there a better way?

Attached Files Thumbnail(s)
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:

- 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.
Also, about Curvy, and if it is not done already, take a look at the scripts used in the example scenes, these are valuables resources for learning how to use Curvy
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

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: