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
I'm using my object as the player character during character select/creation... allowing them to customize the look of their character. I suppose what I could do is create a single object with all the meshes... turning them on and off as they scroll through the options... and then destroy that object, instantiating the final option from the array when I create the actual in-game object in the next scene. That's... actually quite brilliant. +1 for you!
I'm using my object as the player character during character select/creation... allowing them to customize the look of their character. I suppose what I could do is create a single object with all the meshes... turning them on and off as they scroll through the options... and then destroy that object, instantiating the final option from the array when I create the actual in-game object in the next scene. That's... actually quite brilliant. +1 for you!
– ShadusAlways glad to help!
– Suduckgames