From faf9bbfe87744cd62b1a2ec0b599fea36fab7643 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 10 Sep 2020 18:06:26 +0200 Subject: [PATCH] [unity] Removed redundant [SerializeField] attributes at public members. Closes #1757. --- .../Runtime/spine-unity/Components/Following/BoneFollower.cs | 2 +- .../spine-unity/Components/Following/BoneFollowerGraphic.cs | 2 +- .../Runtime/spine-unity/Components/Following/PointFollower.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs index afeef122c..4938e15f1 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs @@ -58,7 +58,7 @@ namespace Spine.Unity { /// If a bone isn't set in code, boneName is used to find the bone at the beginning. For runtime switching by name, use SetBoneByName. You can also set the BoneFollower.bone field directly. [SpineBone(dataField: "skeletonRenderer")] - [SerializeField] public string boneName; + public string boneName; public bool followXYPosition = true; public bool followZPosition = true; 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 a42dd322b..b8336cbf8 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 @@ -57,7 +57,7 @@ namespace Spine.Unity { /// If a bone isn't set in code, boneName is used to find the bone at the beginning. For runtime switching by name, use SetBoneByName. You can also set the BoneFollower.bone field directly. [SpineBone(dataField: "skeletonGraphic")] - [SerializeField] public string boneName; + public string boneName; public bool followBoneRotation = true; [Tooltip("Follows the skeleton's flip state by controlling this Transform's local scale.")] diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/PointFollower.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/PointFollower.cs index bb74d501f..25aa203ff 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/PointFollower.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/Following/PointFollower.cs @@ -44,7 +44,7 @@ namespace Spine.Unity { [HelpURL("http://esotericsoftware.com/spine-unity#PointFollower")] public class PointFollower : MonoBehaviour, IHasSkeletonRenderer, IHasSkeletonComponent { - [SerializeField] public SkeletonRenderer skeletonRenderer; + public SkeletonRenderer skeletonRenderer; public SkeletonRenderer SkeletonRenderer { get { return this.skeletonRenderer; } } public ISkeletonComponent SkeletonComponent { get { return skeletonRenderer as ISkeletonComponent; } }