现在在导出资源时,默认的Shader不带描边,需要一个一个手动去切换。所以想问下在资源导出时如何添加描边Shader的标志,在导出Unity时根据标志自动切换?

Related Discussions
...

最简单的方法可能是在导入资源之前相应地设置“编辑 - 首选项 - Spine”“默认着色器”,如下所述:
https://zh.esotericsoftware.com/spine-unity#Spine-%E9%A6%96%E9%80%89%E9%A1%B9

否则,您可以自己创建一个简单的编辑器脚本,根据您放置骨架资源的目录自动分配轮廓或普通着色器。
例如。 您可以将轮廓着色器自动分配给“Assets/YourSkeletonDir/Stroke/”目录中的每个资源。



The easiest way might be to just set the Edit - Preferences - Spine Default Shader accordingly before importing your assets, as described here:
https://zh.esotericsoftware.com/spine-unity#Spine-%E9%A6%96%E9%80%89%E9%A1%B9

Otherwise you could create a simple editor script yourself which assigns either outline or normal shaders automatically, according to the directory you place your skeleton assets in.
E.g. you could assign your outline shader automatically to each asset in the Assets/YourSkeletonDir/Stroke/ directory.

    Harald 问题已经解决,之前没有详细的阅读运行时文档,导致被这个问题困扰

    @CLXiao 很高兴听到您已经弄清楚了,感谢您回复我们。
    Glad to hear you've figured it out, thanks for getting back to us.