- Home /
Primitives in Unity
Hi, i'm new to unity and plan on playing around with making a simple 2D game. I understand textured quads are the best way to go for that, and i was wondering: do i need a separate tool to create them? A cursory look in the menus and docs don't show any mention of anything related.
Answer by Eric5h5 · Mar 28, 2010 at 07:35 AM
You do need a separate tool to create quads for 2D games; there's no built-in quad primitive. The built-in plane is 200 triangles, which is massive overkill and not really appropriate. You can either make a quad in a 3D app and import it into Unity, create one in code, or use this editor script.
You mean the plane being 200 triangles? That's in case you're using vertex lighting (as opposed to pixel lighting) and want get at least some kind of visible results with point or spot lights.
Answer by qJake · Mar 28, 2010 at 07:06 AM
Unity can create various primitive shapes for you, and you can texture them however you want using Meshes (although you cannot, to my knowledge, UV Map a primitive in Unity).
Primitives can be found by going to Game Object > Create Other... A menu will pop up, and the primitives are at the bottom of the list. This process creates a GameObject and populates it with a Mesh, MeshCollider (or the appropriate type of primitive collider), and MeshRenderer component.
You actually can, SpikeX. The problem is that this change will be saved 'behind the scenes'. So the next time in your project you for instance create a cube, all changes will still apply. Everything will be reset once you save and restart the project. The changed primitive in your scene will remain changed, however.
Answer by adamtea · Aug 23, 2013 at 12:05 AM
As of Unity 4.2, Unity NOW SUPPORTS QUADS!!
Just go into the Create menu, and it should appear right under Cube and other primitives :)
Unity 4.2 release notes: http://unity3d.com/unity/whats-new/unity-4.2.html
Your answer
