【问题标题】:Unity transparent video player doesn't show up on device?Unity透明视频播放器不显示在设备上?
【发布时间】:2019-03-28 03:30:50
【问题描述】:

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

在我的画布中输入图像:

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

【问题讨论】:

    标签: c# user-interface unity3d


    【解决方案1】:

    可能是你的着色器被 Unity 剥离了,尝试将它们添加到 AlwaysIncludeShaders:

    【讨论】:

      【解决方案2】:

      个人版不支持视频播放器

      【讨论】:

      • 你能扩展一下吗?你在 Unity 的文档中哪里看到的?
      【解决方案3】:
      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.
      

      【讨论】:

        猜你喜欢
        • 2022-10-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-01-05
        • 2017-10-24
        • 2021-12-23
        • 2023-03-27
        • 1970-01-01
        相关资源
        最近更新 更多