22 lines
472 B
C#
22 lines
472 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class RenderTextureCopy : MonoBehaviour
|
||
|
{
|
||
|
public RawImage rawImageInput;
|
||
|
|
||
|
public RenderTexture renderTextureOutput;
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Start()
|
||
|
{
|
||
|
}
|
||
|
void Update()
|
||
|
{
|
||
|
Graphics.Blit(rawImageInput.texture, renderTextureOutput);
|
||
|
}
|
||
|
}
|
||
|
}
|