Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: holyfingers on December 07, 2015, 03:26:02 PM

Title: Draw Mesh Torus...
Post by: holyfingers 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:

(http://i.imgur.com/v2FTGWh.gif)

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 
Title: Re: Draw Mesh Torus...
Post by: dudebxl 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..
Title: Re: Draw Mesh Torus...
Post by: holyfingers 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!  :)
Title: Re: Draw Mesh Torus...
Post by: salma175 on October 06, 2017, 12:27:31 AM
How to get dependency scripts or Actions in this script
Title: Re: Draw Mesh Torus...
Post by: holyfingers 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