mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fixed a second example component compile error on 2017.2, see commit 9317241. See #2056.
This commit is contained in:
parent
9317241256
commit
efdf1d3b41
@ -31,8 +31,8 @@
|
|||||||
#define HAS_FORCE_RENDER_OFF
|
#define HAS_FORCE_RENDER_OFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if UNITY_2017_2_OR_NEWER
|
#if UNITY_2018_2_OR_NEWER
|
||||||
#define HAS_VECTOR_INT
|
#define HAS_GET_SHARED_MATERIALS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -78,10 +78,10 @@ namespace Spine.Unity.Examples {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
float fadeoutAlpha = fadeoutSecondsRemaining / fadeoutSeconds;
|
float fadeoutAlpha = fadeoutSecondsRemaining / fadeoutSeconds;
|
||||||
#if HAS_VECTOR_INT
|
#if HAS_GET_SHARED_MATERIALS
|
||||||
skeletonRenderTexture.color.a = fadeoutAlpha;
|
skeletonRenderTexture.color.a = fadeoutAlpha;
|
||||||
#else
|
#else
|
||||||
Debug.LogError("The SkeletonRenderTexture component requires Unity 2017.2 or newer.");
|
Debug.LogError("The SkeletonRenderTexture component requires Unity 2018.2 or newer.");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user