mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 13:19:08 +08:00
[unity] Make SkeletonRenderer invalid when destroying.
This commit is contained in:
parent
50730c7a5c
commit
a96d92d27d
@ -133,7 +133,7 @@ namespace Spine.Unity.Modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Applied = false;
|
Applied = false;
|
||||||
skeletonRenderer.LateUpdate();
|
if (skeletonRenderer.valid) skeletonRenderer.LateUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void GetTexture () {
|
public void GetTexture () {
|
||||||
|
|||||||
@ -147,6 +147,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
void OnDestroy () {
|
void OnDestroy () {
|
||||||
rendererBuffers.Dispose();
|
rendererBuffers.Dispose();
|
||||||
|
valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void ClearState () {
|
public virtual void ClearState () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user