首页 > 电脑

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

更新时间2019-11-15 09:42:38

(是否缺少程序集引用)

最近在处理头像问题时遇到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

是的,你不能这样命名的

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

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