如果您开始一个新项目,请考虑使用较新的Universal RP(URP),它已取代了Lightweight RP(LWRP)。
Spine提供LWRP和URP着色器,您可以在spine-unity文档页面上找到列表:
spine-unity Runtime Documentation: URP Shaders Extension UPM Package
这些着色器可作为单独的Unity Package Manager(UPM)软件包提供,并可在此处以zip软件包的形式下载:
Spine Unity Download: Download
解压缩zip软件包后,即可使用Unity中的软件包管理器添加本地软件包来完成安装:
Spine Unity Download: Installing Extension UPM Packages
该软件包包括2D Renderer示例场景,请看一下。 请确保相应地设置2D渲染器(也在“质量设置”中),否则,“ UniversalRenderPipeline / 2D”着色器将不显示任何内容。
If you start a new project, please consider using the newer Universal RP (URP), which has replaced Lightweight RP (LWRP).
Spine provides LWRP and URP shaders, you can find a list here on the spine-unity documentation pages:
spine-unity Runtime Documentation: URP Shaders Extension UPM Package
These shaders are available as separate Unity Package Manager (UPM) packages and can be downloaded as zip-packages here:
Spine Unity Download: Download
Once the zip package is unpacked, installation is done via adding a local package using the Package Manager in Unity:
Spine Unity Download: Installing Extension UPM Packages
The package includes a 2D Renderer example scene, please have a look it. Please be sure to setup the 2D Renderer accordingly (also in Quality Settings), otherwise the UniversalRenderPipeline/2D
shaders will not display anything.