mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
This commit is contained in:
parent
a71d73928d
commit
538245fcda
@ -503,7 +503,10 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void OnBecameVisible () {
|
public void OnBecameVisible () {
|
||||||
|
UpdateMode previousUpdateMode = updateMode;
|
||||||
updateMode = UpdateMode.FullUpdate;
|
updateMode = UpdateMode.FullUpdate;
|
||||||
|
if (previousUpdateMode != UpdateMode.FullUpdate)
|
||||||
|
LateUpdate(); // OnBecameVisible is called after LateUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnBecameInvisible () {
|
public void OnBecameInvisible () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user