为了获得正确的“添加”混合模式和“线性”色彩空间,您必须在“ SkeletonData修改器”下的“ SkeletonDataAsset”处添加“默认混合模式材料资产”。
您可以在此处查看检查器设置:
spine-unity Runtime Documentation: SkeletonData Modifier Assets
您还可以查看示例场景“脊柱示例/其他示例/混合模式”,资产“ Whirly Blend Modes”在单个骨骼上使用所有混合模式。
对于“线性”色彩空间,您应该使用直接alpha工作流程
( 启用选项“出血”,禁用“预乘alpha”)。
用于自动处理混合模式的改进工作流程目前正在开发中,但尚未完成。
For correct Additive
blend mode and Linear
color space, you have to add the Default Blend Mode Materials Asset
at the SkeletonDataAsset
under SkeletonData Modifiers
.
You can see the Inspector settings here:
spine-unity Runtime Documentation: SkeletonData Modifier Assets
You can also have a look at the example scene Spine Examples/Other Examples/Blend Modes
, the asset Whirly Blend Modes
uses all blend modes at a single skeleton.
For Linear
color space, you should export using straight alpha workflow
(with option Bleed
enabled, Premultiply alpha
disabled).
An improved workflow for automatically handling blend modes is currently in development, but not finished yet.
我们刚刚完成了对新的本机混合模式的支持。
注意:spine-unity现在为插槽混合模式提供本机支持在每个SkeletonDataAsset
处都具有“ Additive”,“ Multiply”和“ Screen”功能,并在新导入时自动设置 骨架资产。 “ BlendModeMaterialAssets”现在已过时,并由“ SkeletonDataAsset”处的本机属性取代。 “ SkeletonDataAsset”检查器提供了一个新的“混合模式-升级”按钮,可将过时的“ BlendModeMaterialAsset”升级为本地混合模式属性。 此升级将在Unity 2020.1及更高版本中的导入和重新导入的资产上自动执行,以防止在这些Unity版本中报告“ BlendModeMaterialAsset”问题。 不论Unity版本如何,spine-unity 4.0及更高版本都会自动执行此升级。
发行票证URL供参考:
https://github.com/EsotericSoftware/spine-runtimes/issues/1822
We have just completed implementation of new native blend modes support.
Note: spine-unity now provides native support for slot blend modes Additive
, Multiply
and Screen
at each SkeletonDataAsset
, with automatic setup at newly imported skeleton assets. BlendModeMaterialAssets
are now obsolete and replaced by the native properties at SkeletonDataAsset
. The SkeletonDataAsset
Inspector provides a new Blend Modes - Upgrade
button to upgrade an obsolete BlendModeMaterialAsset
to the native blend modes properties. This upgrade will be performed automatically on imported and re-imported assets in Unity 2020.1 and newer to prevent reported BlendModeMaterialAsset
issues in these Unity versions. spine-unity 4.0 and newer will automatically perform this upgrade regardless of the Unity version.
Issue ticket URL for reference:
https://github.com/EsotericSoftware/spine-runtimes/issues/1822