add vr test camera, only create render texture if it doesn't exist yet
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Escape_Room_Engine.Portal
|
||||
if (!playerCamera) throw new Exception("No camera initialised.");
|
||||
|
||||
// create render texture
|
||||
_texture = new RenderTexture(Screen.width, Screen.height, 24, RenderTextureFormat.ARGB32);
|
||||
if (!_texture) _texture = new RenderTexture(Screen.width, Screen.height, 24, RenderTextureFormat.ARGB32);
|
||||
}
|
||||
|
||||
private void Start()
|
||||
|
||||
Reference in New Issue
Block a user