07-08-2019, 01:13 PM
Hi,
1) The modules are expected to stay under the generator that created them. To export a mesh, there are two actions in the Create Mesh module, "Save to scene" and "Save mesh asset(s)"
https://curvyeditor.com/documentation/generator/modules/createmesh?redirect=1#save_to_scene
After exporting your mesh, just disable the curvy generator's game object, and do your build. I guess, even though I haven't tested it, you can use some Unity pre-build hook to automate this operation using Curvy's API
2)You can find here more information about those events:
https://api.curvyeditor.com/520/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html#a36d540c6761a80634b25f67886fbb5a8
OnAfterControlPointChanges does not trigger when a Control Point moves.
OnGlobalCoordinatesChanged is related to the spline's transform, not the CPs' ones.
Unity's Transform.hasChanged will help you achieve what you need. This is what I used to implement CurvySpline.OnGlobalCoordinatesChanged
https://docs.unity3d.com/ScriptReference/Transform-hasChanged.html
Please let me know if you still have any questions.
Have a nice day
1) The modules are expected to stay under the generator that created them. To export a mesh, there are two actions in the Create Mesh module, "Save to scene" and "Save mesh asset(s)"
https://curvyeditor.com/documentation/generator/modules/createmesh?redirect=1#save_to_scene
After exporting your mesh, just disable the curvy generator's game object, and do your build. I guess, even though I haven't tested it, you can use some Unity pre-build hook to automate this operation using Curvy's API
2)You can find here more information about those events:
https://api.curvyeditor.com/520/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html#a36d540c6761a80634b25f67886fbb5a8
OnAfterControlPointChanges does not trigger when a Control Point moves.
OnGlobalCoordinatesChanged is related to the spline's transform, not the CPs' ones.
Unity's Transform.hasChanged will help you achieve what you need. This is what I used to implement CurvySpline.OnGlobalCoordinatesChanged
https://docs.unity3d.com/ScriptReference/Transform-hasChanged.html
Please let me know if you still have any 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.