mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-20 00:36:43 +08:00
[unity] Cleanup SkeletonDataAssetInspector
This commit is contained in:
parent
1dda8f5890
commit
4048e6b7f5
@ -120,15 +120,6 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
}
|
||||
|
||||
void HandlePreviewSkinChanged (string skinName) {
|
||||
EditorPrefs.SetString(LastSkinKey, skinName);
|
||||
}
|
||||
|
||||
void OnDestroy () {
|
||||
EditorApplication.update -= EditorUpdate;
|
||||
preview.OnDestroy();
|
||||
}
|
||||
|
||||
void EditorUpdate () {
|
||||
preview.AdjustCamera();
|
||||
|
||||
@ -498,13 +489,6 @@ namespace Spine.Unity.Editor {
|
||||
EditorGUILayout.LabelField(SpineInspectorUtility.TempContent(line, Icons.warning));
|
||||
}
|
||||
|
||||
void DoReimport () {
|
||||
SpineEditorUtilities.ImportSpineContent(new [] { AssetDatabase.GetAssetPath(skeletonJSON.objectReferenceValue) }, true);
|
||||
preview.Clear();
|
||||
InitializeEditor();
|
||||
EditorUtility.SetDirty(targetSkeletonDataAsset);
|
||||
}
|
||||
|
||||
void PopulateWarnings () {
|
||||
warnings.Clear();
|
||||
|
||||
@ -567,6 +551,22 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
}
|
||||
|
||||
void DoReimport () {
|
||||
SpineEditorUtilities.ImportSpineContent(new [] { AssetDatabase.GetAssetPath(skeletonJSON.objectReferenceValue) }, true);
|
||||
preview.Clear();
|
||||
InitializeEditor();
|
||||
EditorUtility.SetDirty(targetSkeletonDataAsset);
|
||||
}
|
||||
|
||||
void HandlePreviewSkinChanged (string skinName) {
|
||||
EditorPrefs.SetString(LastSkinKey, skinName);
|
||||
}
|
||||
|
||||
void OnDestroy () {
|
||||
EditorApplication.update -= EditorUpdate;
|
||||
preview.OnDestroy();
|
||||
}
|
||||
|
||||
#region Preview Handlers
|
||||
override public bool HasPreviewGUI () {
|
||||
if (serializedObject.isEditingMultipleObjects)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user