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 () {
|
protected override void Awake () {
|
||||||
|
|
||||||
base.Awake ();
|
base.Awake ();
|
||||||
|
updateMode = updateWhenInvisible;
|
||||||
SyncRawImagesWithCanvasRenderers();
|
SyncRawImagesWithCanvasRenderers();
|
||||||
if (!this.IsValid) {
|
if (!this.IsValid) {
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
|
|||||||
@ -280,6 +280,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
public virtual void Awake () {
|
public virtual void Awake () {
|
||||||
Initialize(false);
|
Initialize(false);
|
||||||
|
updateMode = updateWhenInvisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE
|
#if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user