我正在研究 Unity + 增强现实。我想在标记检测事件的特定位置显示一些“动画 .gif”文件。 我管理所有但我想在 Android 屏幕上的特定位置显示 .gif 动画。 但我认为
Unity 不支持.gif
和
Android 不支持 VideoTexture。
最佳答案
Unity 不支持 Gif。
你有两个选择:
- 拆分动画并使用 Animator:there you have a nice howto
保存单个帧并制作一组纹理。
var 帧:纹理[]; var framesPerSecond = 10;
函数更新() { var index : int = (Time.time * framesPerSecond) % frames.Length; renderer.material.mainTexture = frames[index];
关于android - 如何在统一场景中添加.gif 动画? Unity 是否支持 GIF 动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37135353/