How to Activate texture on collison

Hi i am making a simple game where i want my GameObject to have the default material and i want to activate the texture material on collision with another GameObject

can anyone help me with a simple c# script

You can use Material.SetTexture(…)

To get a reference to the material :

To get the reference to a component :

And upon collision :

Always remember to check Unity’s documentation, 80% of the time the answer is right in front of you :wink: