更改文件架构
This commit is contained in:
22
Packages/Common~/Scripts/Materials/RenderTextureCopy.cs
Normal file
22
Packages/Common~/Scripts/Materials/RenderTextureCopy.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
11
Packages/Common~/Scripts/Materials/RenderTextureCopy.cs.meta
Normal file
11
Packages/Common~/Scripts/Materials/RenderTextureCopy.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b322f0d9eb06daa449bf9e7a64e52dbc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user