- Home /
When building a game, are unused prefabs and scripts affected?
So I've made a game for android but I've created a lot of scripts and prefabs which I'm not using at the moment. They're never run or instantiated in the game. I keep them in a separate sub-folder in the assets folder. When I build the project, are these prefabs and scripts going to affect my game in any way?
Answer by meat5000 · Apr 02, 2018 at 11:27 AM
They will still be present. Unusued scripts will still be compiled.
It's not terrible in a small project but is generally bad practise to include unused assets, unless you plan an update in the future, perhaps. For the purposes of development and testing there is no need to go through the motions of excluding them, they wont harm your project, on the whole. But if you plan to publish, its a Must.
Your answer

Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How Mark Prefab Dirty? 1 Answer
How to reference a prefab to the script that doesn't exist in Hierarchy 0 Answers
Prefab Puzzle 1 Answer
SetActive() not working 0 Answers