I expect this must have been covered somewhere, but I haven’t been able to find an answer to my question, partly because I’m not sure how to search for it.
So I’m creating a sort of rts, and I would like my characters to have individual attributes. So I have a prefab with a class attached which allows me to give the character a name, speed age, wage, ect. These characters get created during the game.
Now say when the user goes to create one, they get a choice of different people, all with different stats. What is the best way of creating all these people?
I could create a whole load instances of the prefab in the editor, all with the individual stats, and unhide them when the user “creates” them. But if I say had a choice of 40 people, and thats just for one type of character then, to me it feels like a bad way of doing it. I’m fairly new to unity and game development, and I wondered how other people would tackle this? All I need is a list of properties for each person, which i could then apply to the prefab properties. Does any one have any ideas or good links to examples?
thanks
Phil