(08-12-2020, 06:00 PM)_Aka_ Wrote: Hi,
1. and 2. Yes, and you can see that done in example scene 21_CGExtrusion, which is called "Move object: Follow a Curvy generated volume" in the WebGL demo.
3. Have a mesh extrusion following the spline, and then set the dashed line in the texture applied on the mesh. This is done via the Curvy Generator feature.
4. If you want to generate meshes for dashes instead of having them as a texture, you can do that too, also through the Curvy Generator, by extruding a flash mesh. Also you can use the Curvy Line Renderer to generate a flat mesh. You can see that in example scene 04_PaintSpline, which is called ""Move object: Follow a dynamic spline" in the WebGL demo.
Is everything clear?
Hi,
thank you very much. 4. is working - made with the generator tool. - Now I would like to use the API do make a dashed line with script:
I started generating the a spline:
CurvySpline _spline = CurvySpline.Create();
_spline.Add(new Vector3(0, 10, 0));
_spline.Add(new Vector3(10, 20, 0));
_spline.Add(new Vector3(10, 30, 0));
1. Do I need the same steps like in the generator now in code to create the dashes?
2. Do you have a sample code to:
2.1 Generate the 2D/Shape Rectangle ?
2.2 Shape extrusion for every dash for a certain Range?
2.3 Create a volume Mesh for each dash?
2.4 Create a Mesh for each Dash?
Thanks in advance!