brianlin1992

Case: I have a SkeletonGraphic with Multiple Canvas Renderer enabled for assigning Multiply Material. The multiply material works well but it has bug while putting inside a canvas mask component. The multiply part cannot be masked and it also gives out a repeated warning.

Warning: Material Character_Material-Multiply doesn't have _Stencil property
UnityEngine.UI.MaskableGraphic:GetModifiedMaterial(Material)
Spine.Unity.SkeletonGraphic:UpdateMeshMultipleCanvasRenderers(SkeletonRendererInstruction, Boolean) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:728)

Spine-Unity version: spine-unity 4.0 (updated 2021-09-15)
brianlin1992
  • 記事: 1

Harald

Are you sure that the correct skeleton graphic mask materials are assigned? We receive proper masking with a Mask component (as used on the Viewport child of the Scroll View in the 6 SkeletonGraphic example scene) when placing the included example skeleton whirlyblendmodes into the scene as child of the Content GameObject.

masked-skeletongraphic-multiply.png


Or did you perhaps mean a different masking component?
添付ファイルを見るにはパーミッションが必要です
アバター
Harald

Harri
  • 記事: 3353


Return to Unity