- Home /
Question by
speck_life · Feb 22, 2014 at 10:31 PM ·
c#shadergameobjectdynamically
Switch to New Shader and Back to Original object's Shader in C# Script
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.
Comment