mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fixed UpdateMode when invisible not being used when instantiated off-screen. Closes #1883.
This commit is contained in:
parent
1e888db53a
commit
25d7f8266f
@ -202,6 +202,7 @@ namespace Spine.Unity {
|
||||
protected override void Awake () {
|
||||
|
||||
base.Awake ();
|
||||
updateMode = updateWhenInvisible;
|
||||
SyncRawImagesWithCanvasRenderers();
|
||||
if (!this.IsValid) {
|
||||
#if UNITY_EDITOR
|
||||
|
||||
@ -280,6 +280,7 @@ namespace Spine.Unity {
|
||||
|
||||
public virtual void Awake () {
|
||||
Initialize(false);
|
||||
updateMode = updateWhenInvisible;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user