Trying to use foliage, materials are messing up

I am very new to UE4, and I try to place down foliage, but the texture goes away. How do I fix this/add a texture to the foliage?

Assign the material inside the static mesh editor first. Double click the mesh to do that and at the somewhat top right you can choose your materials.