我是靠谱客的博主 优秀天空,这篇文章主要介绍unity UnityEngine.Video.VideoPlayer视频面板材质球交替,现在分享给大家,希望可以做个参考。

unity UnityEngine.Video.VideoPlayer视频面板材质球交替


public void VidelChange()
{
VideoPlane.GetComponent<UnityEngine.Video.VideoPlayer>().targetTexture = new RenderTexture(RT);
VideoPlane.GetComponent<RawImage>().texture = VideoPlane.GetComponent<UnityEngine.Video.VideoPlayer>().targetTexture;
VideoPlane.GetComponent<RawImage>().material.mainTexture = VideoPlane.GetComponent<UnityEngine.Video.VideoPlayer>().targetTexture;
}

最后

以上就是优秀天空最近收集整理的关于unity UnityEngine.Video.VideoPlayer视频面板材质球交替的全部内容,更多相关unity内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(99)

评论列表共有 0 条评论

立即
投稿
返回
顶部