|
@@ -9,14 +9,16 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
|
|
|
{
|
|
|
public Texture CaptureImage;
|
|
|
NRRGBCamTexture RGBCamTexture;
|
|
|
+ public bool isAuto = true;
|
|
|
private void Start()
|
|
|
{
|
|
|
|
|
|
RGBCamTexture = new NRRGBCamTexture();
|
|
|
- playCamera();
|
|
|
+ if (isAuto)
|
|
|
+ playCamera(1280, 720);
|
|
|
}
|
|
|
|
|
|
- public void playCamera()
|
|
|
+ public void playCamera(int w, int h)
|
|
|
{
|
|
|
if (RGBCamTexture != null)
|
|
|
{
|