Make the camera render with shader replacement.
var heatVisionShader: Shader; // Render tagged objects with a "heat vision" effect. camera.SetReplacementShader(heatVisionShader, "VisibleWithHeatVision");
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public Shader heatVisionShader; void Example() { camera.SetReplacementShader(heatVisionShader, "VisibleWithHeatVision"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): public heatVisionShader as Shader def Example() as void: camera.SetReplacementShader(heatVisionShader, 'VisibleWithHeatVision')