From a7f629f5045960b61a0d7b4bee7271d6ff9dd897 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 7 Jan 2021 16:18:01 +0100 Subject: [PATCH] [unity] Fixed BoneFollowerGraphic silently failing at Transform instead of RectTransform by requiring component RectTransform. Closes #1828. --- .../spine-unity/Components/Following/BoneFollowerGraphic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs index b8336cbf8..54bdb8b7d 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs @@ -40,7 +40,7 @@ namespace Spine.Unity { #else [ExecuteInEditMode] #endif - [DisallowMultipleComponent] + [RequireComponent(typeof(RectTransform)), DisallowMultipleComponent] [AddComponentMenu("Spine/UI/BoneFollowerGraphic")] [HelpURL("http://esotericsoftware.com/spine-unity#BoneFollowerGraphic")] public class BoneFollowerGraphic : MonoBehaviour {