mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Example component compile error on 2017.2. Closes #2056.
This commit is contained in:
parent
f51baa7184
commit
53ae86a025
@ -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 System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -51,7 +51,7 @@ namespace Spine.Unity.Examples {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[RequireComponent(typeof(SkeletonRenderer))]
|
[RequireComponent(typeof(SkeletonRenderer))]
|
||||||
public class SkeletonRenderTexture : MonoBehaviour {
|
public class SkeletonRenderTexture : MonoBehaviour {
|
||||||
#if HAS_VECTOR_INT
|
#if HAS_GET_SHARED_MATERIALS
|
||||||
public Color color = Color.white;
|
public Color color = Color.white;
|
||||||
public Material quadMaterial;
|
public Material quadMaterial;
|
||||||
public Camera targetCamera;
|
public Camera targetCamera;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user