Пожалуйста, что здесь не так? В редакторе все нормально, но на Galaxy S6 у меня только черный экран.
RenderTexture texture;
void Start () {
texture = new RenderTexture (800, 480, 24);
RenderTexture.active = texture;
}
void Update () {
}
void OnPreRender(){
Camera.main.targetTexture = texture;
}
void OnPostRender() {
Camera.main.targetTexture = null;
Graphics.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), texture);
}
Подробнее здесь: https://stackoverflow.com/questions/314 ... in-unity3d