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); } }
private void Awake() { Instance = this; }