コード例 #1
0
        // 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;
        }
コード例 #2
0
        // 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
        }