Added 3d pseduo canvas

This commit is contained in:
Pasha Bibko
2026-01-20 13:59:02 +00:00
parent bc1c12d97b
commit fe2a5179ee
6 changed files with 411 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
using System;
using UnityEngine;
namespace InterfaceOff.WorldScene
{
public class ExternalCamera : MonoBehaviour
{
[SerializeField] private Camera ExternalCam;
private RenderTexture RenderTexture;
private void Awake()
{
RenderTexture = new RenderTexture(width: 1920, height: 1080, depth: 16);
ExternalCam.targetTexture = RenderTexture;
}
public Texture GetTexture() => RenderTexture;
}
}