mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
26 lines
695 B
C#
26 lines
695 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
namespace RhythmHeavenMania.Editor
|
||
|
{
|
||
|
public class Editor : MonoBehaviour
|
||
|
{
|
||
|
private Initializer Initializer;
|
||
|
|
||
|
[Header("Rect")]
|
||
|
[SerializeField] private RenderTexture ScreenRenderTexture;
|
||
|
[SerializeField] private RawImage Screen;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
Initializer = GetComponent<Initializer>();
|
||
|
|
||
|
GameManager.instance.GameCamera.targetTexture = ScreenRenderTexture;
|
||
|
GameManager.instance.CursorCam.targetTexture = ScreenRenderTexture;
|
||
|
Screen.texture = ScreenRenderTexture;
|
||
|
}
|
||
|
}
|
||
|
}
|