mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[unity] Fixed disabling SkeletonGraphic outside bounds of RectMask2D displaying SkeletonSubmeshGraphic incorrectly. Closes #2324.
This commit is contained in:
parent
39a957c91f
commit
7b37dd5f7b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user