Unity透明视频播放器没有显示在设备上吗?

时间:2019-03-28 03:30:50

标签: c# user-interface unity3d

好,我在渲染纹理上使用Alpha通道视频来在Unity中播放UI视频。我的视频播放器设置如下:

enter image description here

将图像输入画布中

enter image description here

这在编辑器中有效,但是在设备上没有任何显示。为什么会这样?

3 个答案:

答案 0 :(得分:0)

可能是您的着色器被Unity剥离,请尝试将它们添加到AlwaysIncludeShaders中: enter image description here

答案 1 :(得分:0)

视频播放器不支持个人版

答案 2 :(得分:0)

It could be any of the following reasons, which is described on unity doc.
please check with this.
Android Notes

* Support for resolutions above 640 x 360 is not available on all devices. Runtime checks are done to verify this and failures will cause the movie to not be played.
* For Jelly Bean/MR1, movies above 1280 x 720 or with more than 2 audio tracks will not be played due to bugs in the OS libraries.
* For Lollipop and above, any resolution or number of audio channels may be attempted, but will be constrained by device capabilities.
* The Vulkan graphics API is not yet supported.
* Format compatibility issues are reported in the adb logcat output and are always prefixed with AndroidVideoMedia.
* Also pay attention to device-specific error messages located near Unity's error messages: they are not available to the engine, but often explain what the compatibility issue is.
* Playback from asset bundles is only supported for uncompressed bundles, read directly from disk.