Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New version Broke my Generator after each compilation
#1
Hello, I have download the new version of your spline plugin.

After each compilation, all my generator who are desactivated, with no AutoRefresh broke like that:
[Image: IHwnpmxNtjb_broke.PNG]
Reply
#2
Hi,
1- What Curvy version where you using before?
2- Can you link the modules again?
3- Can you please send me a scene that reproduce 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
After reloading Unity, the problem desapeair... impossible to reproduce it.
Well, I'll keep you informed if it happens again, and how
Reply
#4
Ok, thanks for your help
Have a nice day
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
I have the same problem, very anoying !
But now, I have found how to do the bug:

I am in unity 2019.2.0f1, with your new version of curvy.

- create a simple spline
- create a simple generator, with a Shape extrusion template.
- when the shape is generated nicely, apply this setting to the script CurvyGenerator:

[Image: IJkmEYn5PpP_generator.PNG]

Then, go to visual studio, and change something in your code:
Unity now compile in the background while you are still on visual studio. I don't know if it's affect our problem.

Then, go back to unity, and surprise:
[Image: IJkmIqamyXP_Capture.PNG]

-the shape is no longer visible in the scene view
-all the link are broken.

I have found even worst:

When my generator have still the link, and if I desactive the InputSplinePath component, after compiling, here the result:

[Image: IJkmU3ADjoP_broke.PNG]


What is my goal ?
I just want to be able to desactivate and re-activate a Generator on the fly:

I have a big big road with a generator on it. It lag when I am moving the spline.
- I want to desactivate the generator it when I do nothing (that why I want to set it enabled = false), and still have the mesh present.

- When I am moving the spline: I don't want to generator to update, unstead, I want to activate it AFTER when i am pressing a button

But as you see, after each compilation, if I let the generator disabled, the mesh disapair, so I can't do that Sad

(in editor mode only, NOT in play mode)

The best way I would like to do, is to be able to remove the Create Mesh object from the parent generator, like that:
[Image: IJkm3NUGU1P_create.PNG]

But then, If I desactivate the Generator, like that:
[Image: IJkm5c0Qp3P_disactive.PNG]

Then I have the mesh displayed, and not the generator.

The problem is when I activate the generator again: it doesn't find the Mesh.

How can I change the code of the Generator, to be able to keep the link of the "Create Mesh" object, even when moving it form the hierarchy ?

Thanks again, this Generator give me nightmare, every time I try to do something with it, it broke Sad

The best way I would like to do, is to be able to remove the Create Mesh object from the parent generator, like that:
[Image: IJkm3NUGU1P_create.PNG]

But then, If I desactivate the Generator, like that:
[Image: IJkm5c0Qp3P_disactive.PNG]

Then I have the mesh displayed, and not the generator.

The problem is when I activate the generator again: it doesn't find the Mesh.

How can I change the code of the Generator, to be able to keep the link of the "Create Mesh" object, even when moving it form the hierarchy ?

Thanks again, this Generator give me nightmare, every time I try to do something with it, it broke Sad
Reply
#6
Hi
Disabling the components lead to issues. Prefer disabling the game object instead.
To stop the generator from working, untick in its inspector the "auto refresh" property.
The Create mesh module has a "Save to scene" button that you might find usefull https://curvyeditor.com/documentation/ge...esh#export
Did I answer all the questions?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#7
Unfortunatly, the "Auto refresh" boolean doesn't work. Even at false, if I change the spline, the generator still update. That's why I wanted to desactivate the scripts
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Editing Multiple Generator Variables easily Horibe 2 110 09-25-2019, 05:12 AM
Last Post: Horibe
  Reuse Curvy Generator Wanderfalke 3 129 09-24-2019, 07:07 PM
Last Post: _Aka_
  Change Shape Extrusion of Generator by code UsernameHed 5 547 09-20-2019, 03:14 PM
Last Post: _Aka_
  Generator Shape Extrusion Range/Lenght precision UsernameHed 3 505 07-10-2019, 10:21 AM
Last Post: _Aka_

Forum Jump: