Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reuse Curvy Generator
#2
Hi,
It is way easier that that: just update the Spline value of the  InputSplinePath module used in your CurvyGenerator, and that's it. Everything else is done automatically

Here is a simple example:
Code:
public class Test: MonoBehaviour
{
   public InputSplinePath InputModule;
   public CurvySpline S1;
   public CurvySpline S2;

   public bool Switch;

   // Update is called once per frame
   void Update()
   {
       if (Switch)
       {
           Switch = !Switch;
           if (InputModule.Spline == S2)
               InputModule.Spline = S1;
           else
           {
               InputModule.Spline = S2;

           }
       }
   }
}
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
Reuse Curvy Generator - by Wanderfalke - 12-04-2019, 09:54 AM
RE: Reuse Curvy Generator - by _Aka_ - 12-04-2019, 12:32 PM
RE: Reuse Curvy Generator - by Wanderfalke - 12-06-2019, 10:54 AM
RE: Reuse Curvy Generator - by _Aka_ - 12-06-2019, 11:44 AM
RE: Reuse Curvy Generator - by Wanderfalke - 12-06-2019, 12:06 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_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp

Forum Jump: