playMaker

Author Topic: Draw Mesh Torus...  (Read 5413 times)

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • holyfingers.co.uk
Draw Mesh Torus...
« on: December 07, 2015, 03:26:02 PM »
I was searching around for a way to draw and edit a torus in-game and stumbled on this recently necroed thread on the Unity forums: http://forum.unity3d.com/threads/torus-in-unity.8487/

Thought it might be handy as an action:



You can edit the overall radius, the cross-sectional radius and the subdivisions. No UVs yet though!

Let me know if you have any problems or spot any mistakes!

Cheers,

Nick 
« Last Edit: December 07, 2015, 03:51:14 PM by holyfingers »
Twitter: @holyfingers

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Draw Mesh Torus...
« Reply #1 on: December 07, 2015, 03:44:54 PM »
WOW cool.. you have to put this on the ecosystem  :)

I will try this with the particle system mesh thing. Wonder what it will look like..
« Last Edit: December 07, 2015, 03:46:37 PM by dudebxl »

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • holyfingers.co.uk
Re: Draw Mesh Torus...
« Reply #2 on: December 07, 2015, 03:47:17 PM »
Should be up there already: https://snipt.net/holyfingers/drawmeshtorus/

Just search for torus and it'll hopefully pop up!  :)
Twitter: @holyfingers

salma175

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Draw Mesh Torus...
« Reply #3 on: October 06, 2017, 12:27:31 AM »
How to get dependency scripts or Actions in this script

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • holyfingers.co.uk
Re: Draw Mesh Torus...
« Reply #4 on: October 06, 2017, 04:49:33 AM »
Hi there, not too sure what you mean?

I tried the action out in Unity 2017.1 and got an error message due to Mesh.Optimize, you can either just comment that bit out or I've attached a new version with it removed.

Cheers,

Nick
Twitter: @holyfingers