Quantcast
Channel: Questions in topic: "dynamically"
Viewing all articles
Browse latest Browse all 152

Switch to New Shader and Back to Original object's Shader in C# Script

$
0
0
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.

Viewing all articles
Browse latest Browse all 152

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>