So I want to be able to switch between a new shader for a gameobject, and then back to the original shader within a C# script. I can't seem to find an answer to work. I already have all of the raycasting figured out, and I can change the shader to the new one, which is an outline/highlight, but I can't figure out how to get it back to the original shader within the script.
Any help would be greatly appreciated, thanks in advance.
↧