Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transform Gizmos into real 3d meshes
#1
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 Smile

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#)
Reply


Messages In This Thread
Transform Gizmos into real 3d meshes - by rattle-snake - 12-30-2013, 09:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maintaining vertical orientation of extruded meshes rickgplus 3 2,126 01-24-2025, 09:24 PM
Last Post: _Aka_
  Tunnel Colliders and Looping Meshes Petusarian 5 2,668 07-17-2024, 02:36 PM
Last Post: _Aka_
  Invisible Gizmos In Latest Curvy Splines orrenravid1 1 1,309 06-11-2024, 07:36 AM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 3 1,902 05-27-2024, 08:14 AM
Last Post: _Aka_

Forum Jump: