// Use this for initialization void Start() { Debug.Log("Camera PreView Texture [" + PreTextureWidth + "," + PreTextureHeight + "]"); nibiruService = NxrViewer.Instance.GetNibiruService(); if (nibiruService != null) { cameraPreviewHelper = nibiruService.InitCameraPreviewHelper(); } material = GetComponent <Renderer>().material; defaultTexture = material.mainTexture; }
// Use this for initialization void Start() { Debug.Log("Camera PreView Texture [" + PreTextureWidth + "," + PreTextureHeight + "]"); nibiruService = NxrViewer.Instance.GetNibiruService(); if (nibiruService != null) { cameraPreviewHelper = nibiruService.InitCameraPreviewHelper(); } Renderer renderer = GetComponent <Renderer>(); material = renderer == null ? null : renderer.material; defaultTexture = material != null ? material.mainTexture : null; #if UNITY_ANDROID InitTexture(); #endif }