- Home /
How can I access the amount of tris and batches with a built game?
Inside the Game view in the Editor I can use the Stats dropdown to see the current game stats such as: number of tris, batches, etc.
While researching, I just found the UnityStats class inside the UnityEditor library let me get those values inside the code, but the UnityEditor library cannot be built with the game.
That information might be really useful while letting people test the game and sending screenshots when there is a performance spike or whatever.
Is there any way to get/calculate those values inside a built/standalone game?
Answer by PharmacyBrain · Nov 27, 2021 at 02:09 AM
This is a tough question. I think you might need a scriptable rendering pipeline to access low level data like this.
Finding all the triangles in a scene should be easy (just get all the objects and count the mesh filter data), but finding just the triangles being rendered at a given instant sounds low level to me.
Your answer
![](https://koobas.hobune.stream/wayback/20220613045902im_/https://answers.unity.com/themes/thub/images/avi.jpg)