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
#2
Hi
Does adding
signsVolumeSpots.Dirty = true;
at the end of your code solve the issue?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hi, thanks for your response.
Unfortunetly no, the outcome is the same. I still need to manualy move control point to refresh it.
Reply
#4
Can you please send me a reproduction case? Please do not include Curvy Splines in it if you share the link publicly.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
For future reference:
The issue was solved by adding to the user code the following after setting up the user's buildVolumeSpots module:
buildVolumeSpots.Dirty = true;
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


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

Forum Jump: