void ReceiveRemoteScreenYTex(MessageEventArgs mea)
        {
            if (!bTexturesInitialized)
            {
                return;
            }
            remoteScreenYTex.LoadRawTextureData(mea.data);
            remoteScreenYTex.Apply();
            UnityARVideo arVideo = Camera.main.GetComponent <UnityARVideo>();

            if (arVideo)
            {
                arVideo.SetYTexure(remoteScreenYTex);
            }
        }
        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);
            }
        }
Esempio n. 3
0
 private void Awake()
 {
     Instance = this;
 }