- Home /
Count Prefabs on builded .apk
Hey, Is there any way to get a number of prefabs on a builded game?
I know this will work in the Editor:
var levelCount = Directory.GetFiles(Application.dataPath + "/Resources/Prefabs/", "Level_"+"*"+".prefab", SearchOption.AllDirectories).Length;
But since the builded game does not contain the exactly arranged files, because they are merged, I cannot count the prefabs anymore.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612054231im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Android SDK does not include error 1 Answer
Unity Admob Test Ads not working on Android Device. 0 Answers
Build in Gradle 0 Answers
Error building app for google play (build app bundle) 1 Answer