How do I save an object after changing material in play mode?

Thank you sooo much, it’s perfectly working! I strongly appreciate your time and effort to help me with this thing that I couldn’t find anywhere!!!