- Home /
How do I acces 4-gons (quads) from script
I imported an FBX (even tried the editable poly version from 3DSMax) suggested here: https://docs.unity3d.com/Manual/FBXImporter-Model.html
if I read the mesh: myMesh.GetTopology() outputs MeshTopology.Quads; I can read the faces by using myMesh.triangles, which is obviously not what I want, but the closest I found to GetQuads() is GetIndices(int submesh) That outputs the same array as .triangles. How can I access the 4 vertices that belong to a quad? A solution where I find connected triangles would be an acceptable workaround if it's fast.
Your answer
![](https://koobas.hobune.stream/wayback/20220613003602im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
(C4d R 10.5) Importing in Unity one mesh with multiple materials problem. 0 Answers
Blender mesh reverts to original position when starting game 4 Answers
Change mesh translation for future placements 2 Answers
Generating a sphere with irregularities 1 Answer
shooting raycast from each triangle on mesh and change its texture 0 Answers