unity-game-engine

How to modify 3d vehicle color based on the Png image in unity


There is a vehicle in unity game project. Need to create the mod system for that vehicle skin based on the png image. we are not sure how to proceed with this but we are sure definitely there is a way to do this because have seen some games are working with mod system. Did anyone have any idea?


Solution

  • Textures are applied to objects using materials. To change the color, I would assign the new material in the inspector, or try to set the color of the material in the material properties. Either can be done with code if that needs to be done in runtime.