Hello,
so I am researching, and trying to find the best performance on adding multiple materials or textures to 1 object, the player object, which in turn later will have a total of 4 players, total… per game… i heard it was not good as it would cause performance, as it would read 2 files, plus I would have maybe a total of 5, which some said to use Mesh Renderer, is this still a good option, especially a mobile game? the reason for this is, of the 5 material textures, 3 of them are going to have the option of changing color… total of 6 colors, the other 2 materials, wont be changing color… what is a good option for this case?
Unlikely to be an issue. When it is, work it like all other optimization issues: start with the profiler and/or frame debugger, measure everything before you start randomly wrecking your project with speculative optimization.
For what? Yes, you can have many materials in Unity. Yes it’s fine. Yes you can have more materials on one than the other, it’s fine. Materials in Unity are tied to submeshes.
Start experimenting. Within a few minutes you should have a few different-colored guys up on screen and see how it all works. That’s the beauty of Unity.
Imphenzia: How Did I Learn To Make Games:
Two steps to tutorials and / or example code:
- do them perfectly, to the letter (zero typos, including punctuation and capitalization)
- stop and understand each step to understand what is going on.
If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.
This is a modding tool, if I understand the website correctly, making it explicitly against terms of service at this forum.