- Home /
Texturing part of an object
Lets say I made a cube in sketchup and within each face there is a 2d square, once imported into unity, I click the cube, I can see the 2d square on the a face of the cube.
How do I add texture to just that part of the mesh?
Thanks!
Answer by Maulik2208 · Nov 26, 2012 at 02:42 PM
Can't Get you properly But if you want to change the Texture then
public gameobject Cube;//assign this in inspectoer
public Texture2d texture;//assign in inspector (The image or texture you want to apply )
Cube.renderer.material.mainTexture = myTexture;
Your answer
Follow this Question
Related Questions
Does micropoly / tinypoly texture mapping have disadvantages? 1 Answer
Apply PNG as texture to 3d object 0 Answers
How to switch the texture being used by the material of the mesh renderer 1 Answer
Different prefabs with same mesh but different textures(materials). 1 Answer
Splatmapping / blending between two textures in an atlas? 0 Answers