Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move the Create Mesh of a CurvyGenerator Out of the Main Parent
#2
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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Move the Create Mesh of a CurvyGenerator Out of the Main Parent - by _Aka_ - 07-08-2019, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 11 03-26-2024, 06:25 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_

Forum Jump: