Hi again Jake ! I'm making a game where the user will be able to draw roads.
Is there an easy way to transform the gizmos of the curvy line Scripts into real 3D meshes ?
The idea is to let the user modify/delete the shape.
Thanks in advance
Seb
Edit :
For exemple I have a script (JS) attached to the Object containing the CurvyLine Script.
I would like to add by script a mesh renderer and a meshFilter to all the CP.
Something like that : GetComponent(typeof(CurvySpline)).ControlPoints[0].AddComponent(MeshRenderer); // Testing the first CP
but it does'nt work.
However your script in your online Manual works perfectly :
GetComponent(typeof(CurvySpline)).ControlPoints[1].Transform.position.x+=50;
Could you help me to find the way ? Thanks a lot (I'm pretty new with C#)
Is there an easy way to transform the gizmos of the curvy line Scripts into real 3D meshes ?
The idea is to let the user modify/delete the shape.
Thanks in advance
Seb
Edit :
For exemple I have a script (JS) attached to the Object containing the CurvyLine Script.
I would like to add by script a mesh renderer and a meshFilter to all the CP.
Something like that : GetComponent(typeof(CurvySpline)).ControlPoints[0].AddComponent(MeshRenderer); // Testing the first CP
but it does'nt work.
However your script in your online Manual works perfectly :
GetComponent(typeof(CurvySpline)).ControlPoints[1].Transform.position.x+=50;
Could you help me to find the way ? Thanks a lot (I'm pretty new with C#)