- Home /
How to Apply a Texture to an Object in Unity 4
I'm confused. I looked online and also looked at unity's texturing tutorial but it only shows mapping and terrain design. My question is how do I apply a custom texture to an object or get the object to read or find the texture that is supposed to be used for it? I created a test object in Mudbox and painted/textured it then I imported it into Unity 4 but it's like the option for applying a texture has moved or disappeared. I could be overlooking it possibly but I looked everywhere and I can't find it. The only thing I see is a little bio about something about the name being recognized and mapping it now but that doesn't tell me how to get to map to the object it only tells me what it does and how it works out.
Does anyone know? Am I missing something somewhere?
Answer by robertbu · Jun 01, 2013 at 05:04 PM
Textures are applied to materials and materials are applied to meshes. There are lots of posts on this list from various 3D programs where there is difficulty importing the model and getting the texture. Many have recipes as solutions. Google for "Unity3d Mudbox" and you will find a number of hits. You can always do it by hand:
Bring your model in
Import your texture
Create a material
Attach the texture to the material
Apply the material to the model.
After you import your model you have to import your texture. Then you can create a new material by going to Assets - Create - $$anonymous$$aterial. You will get a white sphere, you can drag your texture onto the Texture slot to set the materials texture and then drag this material onto your game model.
I looked at alot of tutorials but they are all outdated because of Unity 4 which has changed. There used to be an option I remember in Unity 3 where I could select the mesh then find the Texture$$anonymous$$ap I imported into unity and add it but now strangely I don't see it in Unity 4 when I select my model. It's like it moved or was changed or something since I'm not seeing this anymore either that or it's hidden somewhere now.
I think I may have to do it manually the way you mentioned so i'll try that and see how it pans out. Only problem is still trying to figure out how to apply it to the $$anonymous$$esh since I don't see an option for it but it's probably in there somewhere and i'll find it eventually.