mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[unity] Fixed UpdateMode when invisible not being used when instantiated off-screen. Closes #1883.
This commit is contained in:
parent
5231b4f713
commit
5cb54bdf9c
@ -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