最简单的方法可能是在导入资源之前相应地设置“编辑 - 首选项 - 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.