I created a plane with:
function Start () {
var plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
}
This makes a plane with a 10x10 vertices. Is there a way through script to modify these # of vertices (ie down to 2x2)?
I created a plane with:
function Start () {
var plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
}
This makes a plane with a 10x10 vertices. Is there a way through script to modify these # of vertices (ie down to 2x2)?
You can just as well build your own mesh. Look at the documentation for Mesh to see an example:
~ce
Sure, but Iām wondering if primitive attributes are not exposed or accessable?
The primitives are not procedurally constructed like in most 3D packages; Unity just has a mesh for each one that it spits out.
If you want procedurally built, customizable primitives, try mine!