Hello, Does anyone know how to set a Material's Tag at runtime?
With this code, I can determine the value of a tag at runtime:
var materialTag = "RenderType";
var result : String = renderer.material.GetTag(materialTag, true, "Nothing");
Unfortunately, there is no Material.SetTag() function. Are there any other ways to set the tag of a material at runtime? (Other than changing the material's shader through scripting.)
http://unity3d.com/support/documentation/ScriptReference/Material.GetTag.html This could be very useful when dealing with replacement shaders.
http://unity3d.com/support/documentation/Components/SL-ShaderReplacement.html