Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New version Broke my Generator after each compilation
#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


Messages In This Thread
RE: New version Broke my Generator after each compilation - by UsernameHed - 10-10-2019, 12:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rotate generator asteroids patndan74 6 3,816 05-08-2025, 10:07 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,975 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,713 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 1,567 07-26-2024, 10:07 AM
Last Post: _Aka_

Forum Jump: