Mythics
1
If you use the editor to create a 3D Quad Game Object, it adds a Mesh Filter with the Mesh set to Quad. If you add your own Mesh Filter Component, is it possible to (via code) set it’s Mesh property to Quad and use the built in Quad Mesh asset?
If so, could someone demonstrate this hopefully very simple task?
You can create a Quad gamaobject and assign its mesh to your mesh filter. Like:
// Create a guad game object
GameObject quadGO = GameObject.CreatePrimitive(PrimitiveType.Quad);
// Assign the mesh from that quad to your gameobject's mesh
GetComponent<MeshFilter>().mesh = quadGO.GetComponent<MeshFilter>().mesh;