CreateIcoSphere

Author: Michael Garforth.

Based on IcoSphere script in ProceduralPrimitives and CreatePlane, UV textures are bugged though, there is a reason a normal sphere is also called "UV sphere".

Usage
Place this script as "CreateIcoSphere.cs" in YourProject/Assets/Editor and a menu item will automatically appear in the "GameObject/Create Other" menu after it is compiled.

Add Collider creates a box collider for the plane if checked.

Create At Origin creates the plane at the origin (0,0,0) if checked; otherwise it's created a little ways in front of the editor camera.

It will create a mesh asset named either "IcoSphere" or "OptionalName" in the "YourProject/Assets/Editor" folder. Appended to the name is the number of segments and orientation.