D
D
Dmitry Korolev2016-07-05 20:28:16
C++ / C#
Dmitry Korolev, 2016-07-05 20:28:16

How can a districtcaster find out the number of polygons an object has?

How to find out the number of polygons in a model by casting a raycast beam on it?
what other data about the object can I find out besides the distance and the name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Pelageykin, 2016-07-05
@adressmoeistranici

All data can be obtained, tk. there is RaycastHit.collider.gameObject. To get polygons, vertices and other emnip, you need to get the Mesh component, it contains information about vertices and faces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question