Ejemplo n.º 1
0
        void ReceiveRemoteScreenUVTex(MessageEventArgs mea)
        {
            if (!bTexturesInitialized)
            {
                return;
            }
            remoteScreenUVTex.LoadRawTextureData(CompressionHelper.ByteArrayDecompress(mea.data));
            remoteScreenUVTex.Apply();
            UnityARVideo arVideo = Camera.main.GetComponent <UnityARVideo>();

            if (arVideo)
            {
                arVideo.SetUVTexure(remoteScreenUVTex);
            }
        }
        void ReceiveRemoteScreenUVTex(MessageEventArgs mea)
        {
            if (bTexturesInitialized == false)
            {
                return;
            }
            remoteScreenUVTex.LoadRawTextureData(mea.data);
            remoteScreenUVTex.Apply();
            UnityARVideo arVideo = Camera.main.GetComponent <UnityARVideo>();

            if (arVideo)
            {
                arVideo.SetUVTexure(remoteScreenUVTex);
            }
        }