mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-23 18:21:23 +08:00
[unity] Removed redundant [SerializeField] attributes at public members. Closes #1757.
This commit is contained in:
parent
263097953e
commit
faf9bbfe87
@ -58,7 +58,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
/// <summary>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.</summary>
|
/// <summary>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.</summary>
|
||||||
[SpineBone(dataField: "skeletonRenderer")]
|
[SpineBone(dataField: "skeletonRenderer")]
|
||||||
[SerializeField] public string boneName;
|
public string boneName;
|
||||||
|
|
||||||
public bool followXYPosition = true;
|
public bool followXYPosition = true;
|
||||||
public bool followZPosition = true;
|
public bool followZPosition = true;
|
||||||
|
|||||||
@ -57,7 +57,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
/// <summary>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.</summary>
|
/// <summary>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.</summary>
|
||||||
[SpineBone(dataField: "skeletonGraphic")]
|
[SpineBone(dataField: "skeletonGraphic")]
|
||||||
[SerializeField] public string boneName;
|
public string boneName;
|
||||||
|
|
||||||
public bool followBoneRotation = true;
|
public bool followBoneRotation = true;
|
||||||
[Tooltip("Follows the skeleton's flip state by controlling this Transform's local scale.")]
|
[Tooltip("Follows the skeleton's flip state by controlling this Transform's local scale.")]
|
||||||
|
|||||||
@ -44,7 +44,7 @@ namespace Spine.Unity {
|
|||||||
[HelpURL("http://esotericsoftware.com/spine-unity#PointFollower")]
|
[HelpURL("http://esotericsoftware.com/spine-unity#PointFollower")]
|
||||||
public class PointFollower : MonoBehaviour, IHasSkeletonRenderer, IHasSkeletonComponent {
|
public class PointFollower : MonoBehaviour, IHasSkeletonRenderer, IHasSkeletonComponent {
|
||||||
|
|
||||||
[SerializeField] public SkeletonRenderer skeletonRenderer;
|
public SkeletonRenderer skeletonRenderer;
|
||||||
public SkeletonRenderer SkeletonRenderer { get { return this.skeletonRenderer; } }
|
public SkeletonRenderer SkeletonRenderer { get { return this.skeletonRenderer; } }
|
||||||
public ISkeletonComponent SkeletonComponent { get { return skeletonRenderer as ISkeletonComponent; } }
|
public ISkeletonComponent SkeletonComponent { get { return skeletonRenderer as ISkeletonComponent; } }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user