mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 03:21:35 +08:00
[unity] Fixed a bug at SkeletonGraphic where child renderers were still shown although the parent is disabled when Multiple CanvasRenders is enabled. Closes #1715.
This commit is contained in:
parent
f946fd8b56
commit
f8574f1392
@ -210,6 +210,13 @@ namespace Spine.Unity {
|
||||
if (allowMultipleCanvasRenderers) canvasRenderer.Clear();
|
||||
}
|
||||
|
||||
protected override void OnDisable () {
|
||||
base.OnDisable();
|
||||
foreach (var canvasRenderer in canvasRenderers) {
|
||||
canvasRenderer.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Update () {
|
||||
#if UNITY_EDITOR
|
||||
if (!Application.isPlaying) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user