命名空间“UniGif”中不存在类型或命名空间“GetTextureListCoroutine” - 爱问答

(爱问答)

命名空间“UniGif”中不存在类型或命名空间“GetTextureListCoroutine”

(是否缺少程序集引用)

最近在处理头像问题时遇到gif在unity中加载出现红色问号的问题,在网上查到大部分通过引入System.Drawing这个库使用Image转换使用,但是在移动平台System.Drawing依赖了其他库,一直无法实现。最后找到了一个纯C#实现的库,使用起来十分方便。

UniGif GitHub地址

主要使用UniGif中的两个方法GetTextureList()和GetTextureListCoroutine()

异步接口

public static IEnumerator GetTextureListCoroutine (MonoBehaviour mb, byte[] bytes, Action<List<GifTexture>, int, int, int> cb,
        FilterMode filterMode = FilterMode.Bilinear, TextureWrapMode wrapMode = TextureWrapMode.Clamp, bool debugLog = false)
1
2
同步接口

public static List<GifTexture> GetTextureList (byte[] bytes, out int loopCount, out int width, out int height,
        FilterMode filterMode = FilterMode.Bilinear, TextureWrapMode wrapMode = TextureWrapMode.Clamp, bool debugLog = false)
原文链接:https://blog.csdn.net/wsc122181582/article/details/78115777

 

直接重新下载dll

是的,你不能这样命名的

下一篇:实体用@Data在业务层怎么set值?

上一篇:c程序,inta=5,为什么a++也是5,而不是6呢?

热门标签:
excel 网盘 破解 word dll
最新更新:
微软重新评估新的Outlook的使用时机 联想推出搭载联发科Helio G80芯片组的Tab M9平板 英特尔创新大赛时间确定! 微软Edge浏览器在稳定渠道中推出Workspaces功能 英伟达RTX4060TiGPU推出MaxSun动漫主题! 谷歌地图为用户提供了街景服务! GameSir 在T4 Kaleid中推出了一款出色的控制器! 微软开始在Windows 11 中测试其画图应用程序的新深色模式! LG电子推出全球首款无线OLED电视 英伟达人工智能芯片崭露头角! Steam Deck可以玩什么游戏-Steam Deck价格限时优惠 雷蛇推出CobraPro鼠标 Kindle电子阅读器可以访问谷歌商店吗 Windows10如何加入组策略 window10图片查看器怎么没有了?