how to replace day to night textrure

hi,

i have ten types of buildings in my scene and i made ten types of texture for day and ten for night
i want to change my buildings texture from day to night with press a button in c#.
i am newbie in unity and c#

any help would be appreciated

Thanks

You would need a custom script that stores both versions as separate materials, as well as a reference to the MeshRenderer for that object. Then you can just set renderer.sharedMaterial to the correct one whenever your trigger fires.