Quantcast
Browsing latest articles
Browse All 7 View Live

Answer by Chris D

The documentation on the [Mesh][1] functions is pretty thorough. Point 1 has a code example to build a mesh from scratch: 1. Building a mesh from scratch: should always be done in the following order:...

View Article


Answer by Eric5h5

See the [CreatePlane][1] script on the wiki. [1]: http://wiki.unity3d.com/index.php/CreatePlane

View Article


Answer by zmar0519

you could use `gameObject.CreatePrimitive(PrimitiveType.Plane);`, but that will give you the ten by ten vertice plane we get from the gameObject Menu. I reccomend trying the below code. It will give...

View Article

Answer by sysmaya

GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane); // Position and rotation plane plane.transform.position = new Vector3(1f, 2f, 3f);

View Article
Browsing latest articles
Browse All 7 View Live