mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor editor changes.
This commit is contained in:
parent
5532ca290d
commit
c744c9a7d7
@ -112,7 +112,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
if (attachment != null && boundingBoxAttachment == null)
|
if (attachment != null && boundingBoxAttachment == null)
|
||||||
Debug.Log("BoundingBoxFollower tried to follow a slot that contains non-boundingbox attachments.");
|
Debug.Log("BoundingBoxFollower tried to follow a slot that contains non-boundingbox attachments: " + slotName);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (boundingBoxAttachment != null) {
|
if (boundingBoxAttachment != null) {
|
||||||
|
|||||||
@ -60,7 +60,7 @@ namespace Spine.Unity.Editor {
|
|||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
EditorGUILayout.PropertyField(skeletonRenderer);
|
EditorGUILayout.PropertyField(skeletonRenderer);
|
||||||
EditorGUILayout.PropertyField(slotName, new GUIContent("Slot"));
|
EditorGUILayout.PropertyField(slotName, new GUIContent("Slot"));
|
||||||
EditorGUILayout.PropertyField(isTrigger, new GUIContent ("IsTrigger"));
|
EditorGUILayout.PropertyField(isTrigger);
|
||||||
|
|
||||||
if (EditorGUI.EndChangeCheck()) {
|
if (EditorGUI.EndChangeCheck()) {
|
||||||
serializedObject.ApplyModifiedProperties();
|
serializedObject.ApplyModifiedProperties();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user