0
\$\begingroup\$

I have a 3d model of a city. It is in collada format and ina dae file. I imported 3d model to unity but I don't know how can I access the objects of this 3d model with c# script.Because I am new with coding stuff. I am trying to learn bot unity and c# at the same time and I think this is a painful process.I want to access and manipulate the triangles in this 3d model. You can see the model in the attaching pictureenter image description here

\$\endgroup\$
0
\$\begingroup\$

Mesh class contains triangles array, as described in the documentation:

The array is a list of triangles that contains indices into the vertex array

\$\endgroup\$
2
  • \$\begingroup\$ Thanks for answer can you describe the syntax for this according to my object (new_scene1_0) \$\endgroup\$ – user51044 Jul 3 '16 at 18:51
  • \$\begingroup\$ because myscript does not work \$\endgroup\$ – user51044 Jul 3 '16 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.