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;

           }
       }
   }
}
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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 7 6,237 07-13-2025, 07:11 PM
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 3,839 05-08-2025, 10:07 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,993 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,720 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: