K
K
KraGen.Developer2021-11-12 20:04:26
Unity
KraGen.Developer, 2021-11-12 20:04:26

How to implement a character skin change?

In general, guys, tell me how you can implement a change in the 3D model of the cube. A skin is selected in the game menu and the selected one is written to PlayerPrefs.SetInt("Skin",n); where n is the skin number.
At the start of the level scene, one or another skin is activated depending on the value. That is, I have, as it were, prefabs of skins, in fact, they are all the same, only the model and some data are different. How can I change the 3D model itself so as not to cut down the prefab of the skin? This is what skins look like618e9e7fdde78560608372.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yura Milevsky, 2021-11-14
@Hackerman1

Just turn one on and turn off the other. No other way.

N
Nekit Medvedev, 2021-11-15
@NIKROTOS

You can make one object and for it the base is an array of materials or meshes, depending on what you change. And substitute the right one. Ideally, store links to materials in an array so that they are not constantly loaded

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question