根据我的了解,Spine-Unity 4.2 确实有对应的懒加载包(On-Demand Loading)。
适用于 spine-unity 4.2 的懒加载包:
On-Demand Loading 扩展包 com.esotericsoftware.spine.on-demand-loading
如果你使用的是 unitypackage 安装方式(默认方式),可以通过 Unity Package Manager 添加以下 git URL:
https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-unity/Modules/com.esotericsoftware.spine.on-demand-loading#4.2
Addressables 扩展包 com.esotericsoftware.spine.addressables(基于 Addressables 系统的实现)
同样通过 git URL 添加:
https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-unity/Modules/com.esotericsoftware.spine.addressables#4.2
重要提示: 需要先安装 com.esotericsoftware.spine.on-demand-loading 包,然后再安装 com.esotericsoftware.spine.addressables 包。
关于 4.3 兼容 4.2 的问题,由于版本差异,建议使用与你的 spine-unity 版本匹配的懒加载包(即 4.2 对应 4.2 的包)以确保最佳兼容性。