playMaker

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

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 31
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Draw Mesh Torus...
« on: December 07, 2015, 01: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, 01:51:14 PM by holyfingers »
Twitter: @holyfingers

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Draw Mesh Torus...
« Reply #1 on: December 07, 2015, 01: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, 01:46:37 PM by dudebxl »

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 31
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Re: Draw Mesh Torus...
« Reply #2 on: December 07, 2015, 01: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
    • View Profile
Re: Draw Mesh Torus...
« Reply #3 on: October 05, 2017, 09:27:31 PM »
How to get dependency scripts or Actions in this script

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 31
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Re: Draw Mesh Torus...
« Reply #4 on: October 06, 2017, 01: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