Hello, simple question. how do i add a texture to an object?

how do i add a texture to an object?
from “gameObject” I created a simple cube.
It has a “default diffuse” the option to add a texture is grayed out.

Thank you
D

Well it appears you can’t with the Default-Diffuse. You’ll have to assign a new material to the cube. To create a new material, select Assets > Create > Material. Then drag and drop the material onto the cube shown in the Scene Panel.

Then you can add the texture by first clicking on the material in the Inspector Panel to toggle the settings for the material (if not visible). Then import a texture. Drag and drop the texture into the dark grey square that says “None (Texture)”.

Thank you CyberArtist, the dragging and dropping to the object worked.
D

A quick follow up. How could i make it semi transparent?
thx
D

There is a transparent shader. However, if you’re talking about adjusting the transparency, that would be going into coding shaders.

Ok thank you will look that up.
d

If I am not mistaken, and please correct me if I am wrong because I am not at my home computer, you can change the material type to Transparent <End Name (Like Bumped Spectular)> and click apply and a new option should appear for Alpha transparency?

thx CyberArtist & k1mset, works especially the drag & drop. However, i have a .png i can drag & drop it onto the model i see a color change but not the textures of a brick like material. I thought it would take .png

Same as yesterday, I am not at my home computer however draging and droping the texture won’t do the trick. You need to create a material, you drag the texture onto the material, and drag the material onto the object.

Dragging and dropping a texture is fine; it will create the necessary material. However you need to UV map models if you expect them to be textured.

–Eric