I want to create a prefab for my game characters so I can instantiate them programmatically. However, my game characters can be one of two genders, one of three races, and have seven variant models for each race/gender combination.
This means, combined, there are 42 different models that could be used.
What I do in this case, is to have a prebaf without mesh , and then add in the code the mesh as a childen in that way, So I can have a enemy prefab, and 20 differents models , If I want to add more modesl I just need add them to zombieModelArray and If i change something in the enemy prefab it affect them all