Files
BITKit/Src/Unity/Scripts/Materials/RenderTextureCopy.cs
2023-09-02 00:51:39 +08:00

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);
}
}
}