// Use this for initialization
        void Start()
        {
            Debug.Log("Camera PreView Texture [" + PreTextureWidth + "," + PreTextureHeight + "]");
            holoeverService = NxrViewer.Instance.GetHoloeverService();
            if (holoeverService != null)
            {
                cameraPreviewHelper = holoeverService.InitCameraPreviewHelper();
            }

            material       = GetComponent <Renderer>().material;
            defaultTexture = material.mainTexture;
        }
        // Use this for initialization
        void Start()
        {
            Debug.Log("Camera PreView Texture [" + PreTextureWidth + "," + PreTextureHeight + "]");
            holoeverService = NxrViewer.Instance.GetHoloeverService();
            if (holoeverService != null)
            {
                cameraPreviewHelper = holoeverService.InitCameraPreviewHelper();
            }

            Renderer renderer = GetComponent <Renderer>();

            material       = renderer == null ? null : renderer.material;
            defaultTexture = material != null ? material.mainTexture : null;
#if UNITY_ANDROID
            InitTexture();
#endif
        }
Beispiel #3
0
 public CameraPreviewHelper InitCameraPreviewHelper()
 {
     cameraPreviewHelper = new CameraPreviewHelper();
     return(cameraPreviewHelper);
 }