I am sure this has been covered before so if someone can point me to the correct answer that would be great.
V simple I have a button created in the my HuD and on button press I want it to swap a material on a mesh. Just to test I would like a two hud buttons one red one blue ( which I have created ) and on press it swaps the box material from red to blue ( for now a colour is fine but I will want a texture swap eventually ) , its just for a proof of concept.
I can swap the materials pressing a keyboard key using one of the old material tutorials but I cant seem to find a new updated one.
Any help would be appreciated