[unity] Fixed disabling SkeletonGraphic outside bounds of RectMask2D displaying SkeletonSubmeshGraphic incorrectly. Closes #2324.

This commit is contained in:
Harald Csaszar 2023-07-19 17:53:07 +02:00
parent 39a957c91f
commit 7b37dd5f7b

View File

@ -43,5 +43,15 @@ namespace Spine.Unity {
protected override void OnPopulateMesh (VertexHelper vh) {
vh.Clear();
}
protected override void OnDisable () {
base.OnDisable();
this.canvasRenderer.cull = true;
}
protected override void OnEnable () {
base.OnEnable();
this.canvasRenderer.cull = false;
}
}
}