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

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