- Home /
How to change mesh renderer of the 3d object with code
Hello All! I am preparing a hyper-casual game but I need to add a simple shop system in my game, in the game player will collect coins and can buy some skins my problem start here how can I change the skin of the player. The first thing I think is editing a Mesh Renderer component. Is there a better way to solve my problem. For example, my player game object is cube at the beginning but if the user collects 100 coins they can buy traffic cone or car for example.
it's possible to change a mesh but if you are just learning about unity then it would be eaiser to just change the gameObject. This way you can have it setup ahead of time however you want for the new player to be.
Your answer
Follow this Question
Related Questions
How to change material of a SkinnedMeshRenderer? 0 Answers
Fire in Unity3D - Fire particles 1 Answer
How to increment button text from another scene? 1 Answer
Flat Mesh character in 3D Environment - Bottom cropped 0 Answers
Level unlock system 1 Answer