Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have to refresh generator manualy :(
#1
Hi,

I have a problem with my generator. I made a EditorWindow script for generating platforms in my game. I want to generate two signs facing the direction of the spline at the beginning and the ending of it.

I use Volume Spots to set both of them. I set its SpaceBefore at 0.25 so it will be right begind the beginning.
With the second one I came up with idea of using spline.Lenght to figure out what to set at SpaceAfter. Of course for safety I set it with x - 1 value.

After that i used bunch of .Refresh() metods of any different kind of noods: (Generator, InputPath, InputPath.Spline, VolumeSpots, CreateGO), but couldn't make it update at sceen, without manualy changing the position of ControlPoint of path spline to "refresh it" and Undoing it. Then it works just fine.

The metod im using goes like this:

Code:
private void AlignSigns()
{
    splineLenght = splineToGetLenght.Spline.Length - 1f;
    signsVolumeSpots.Groups[0].SpaceAfter = new FloatRegion(splineLenght);
}

Can someone suggest what to use to make it updating after using this method?
Reply


Messages In This Thread
I have to refresh generator manualy :( - by GameDeveloperek4123 - 09-27-2024, 08:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 100 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 177 07-26-2024, 10:07 AM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 134 04-03-2024, 03:16 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 156 03-27-2024, 07:25 AM
Last Post: amutp

Forum Jump: