Эх сурвалжийг харах

[unity] Example component compile error on 2017.2. Closes #2056.

Harald Csaszar 3 жил өмнө
parent
commit
53ae86a025

+ 3 - 3
spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs

@@ -31,8 +31,8 @@
 #define HAS_FORCE_RENDER_OFF
 #endif
 
-#if UNITY_2017_2_OR_NEWER
-#define HAS_VECTOR_INT
+#if UNITY_2018_2_OR_NEWER
+#define HAS_GET_SHARED_MATERIALS
 #endif
 
 using System.Collections.Generic;
@@ -51,7 +51,7 @@ namespace Spine.Unity.Examples {
 	/// </summary>
 	[RequireComponent(typeof(SkeletonRenderer))]
 	public class SkeletonRenderTexture : MonoBehaviour {
-#if HAS_VECTOR_INT
+#if HAS_GET_SHARED_MATERIALS
 		public Color color = Color.white;
 		public Material quadMaterial;
 		public Camera targetCamera;