This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.IO; | |
/* | |
Usage: | |
1. Create a camera for rendering texture. | |
2. Create a RenderTexture object and set it as targetTexture on renderer camera. | |
1. Attach this script to the renderer camera's game object. |