Hello
im trying to make a customization menu for my game, i have a base idea of what im going to do but, i wanna know if there is a better way to do it. I have around 100-120 meshes, with 250+ textures, for the clothing, so its a lot of things to do, and i dont want to hardcode it. Also im kind of a newbye on coding.
What im thinking of doing is:
Using two buttons (left/right), to add/substract from a list with the meshes, so in the menu you select “Torso”, and there is a list/array, that displays only the “selected” mesh, when you click the buttons left/right it goes -1 or +1 on the position on the list/array.
This seems easy, and i have on problem with it, however, the thing is, as the mesh changes, it also changes the textures and texture list. Im using only one texture per mesh,but for some meshes i have up to 5 variations, and for some only 2.
So what i tought was using Scriptable objects, and make a SO for every “Item”, containing one mesh, and all the textures for it, and when i swap the item, to instantly look in the “item” for the mesh and the texture list.
But this is kind of a lot of work.
is there any better way to do it? some simpler way?
i would really appretiate some help here.