• 中文
  • spine3.6文件通过unity2018.4.12打包后,shader丢失

我把spine 的文件导入unity 后,一切正常,但是当我把 spine 通过 assetbundle 打包后,通过预加载载入后,spine 在场景中显示 紫色,我尝试在 Always Included Shaders 中加入spine 材质,也不行,不是打包的,放在场景中的就是正确的。甚至场景中预先放好一份,再加载还是紫色。不清楚后续版本有没有这个问题?希望能够给一个解决方案。
谢谢

Related Discussions
...
4 dias depois

这么晚才回复很抱歉。
Sorry for the late reply.

您将哪些资产放入资产捆绑包中? 您是否包括了Spine Skeleton的全部6个资产以及Skeleton实例对象的预制件? 您如何从资产捆绑包中实例化骨骼?
Which assets did you put in your asset bundle? Did you include all 6 assets of your Spine Skeleton and also a prefab of a Skeleton instance object? How do you instantiate your Skeleton from the asset bundle?

通常,将所有6个Skeleton资产以及一个Skeleton实例的预制件添加到同一资产束中,然后从该束中加载预制件时,可以正常工作。 不需要将着色器添加到“始终包括的着色器”列表中。
In general, it is expected to work when adding all 6 Skeleton assets plus a prefab of a Skeleton instance to the same asset bundle, and then loading the prefab from the bundle. It is not required to add the shaders to the Always Included Shaders list.