D
D
dani220232022-02-02 12:36:44
Unity
dani22023, 2022-02-02 12:36:44

Unity 3d skin change issue?

The problem is this. I have a store with a skin, and a button to select it. I want this selected skin to be applied on my 3d character as a texture. How can I change the texture of a 3d character through code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-02-02
@dani22023

GetComponent<MeshRenderer>().material.mainTexture = megaSkinFromShop;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question