[unity] Disable baking with new prefab system.

This commit is contained in:
pharan 2018-12-04 19:41:53 +08:00
parent 54dd3825f7
commit bd342bc10d

View File

@ -3,6 +3,11 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
#if UNITY_2018_3 || UNITY_2019
#define NEW_PREFAB_SYSTEM
#endif
namespace Spine.Unity.Editor {
using Editor = UnityEditor.Editor;
@ -11,6 +16,7 @@ namespace Spine.Unity.Editor {
public class SkeletonBakingWindow : EditorWindow {
const bool IsUtilityWindow = true;
#if !NEW_PREFAB_SYSTEM
[MenuItem("CONTEXT/SkeletonDataAsset/Skeleton Baking", false, 5000)]
public static void Init (MenuCommand command) {
var window = EditorWindow.GetWindow<SkeletonBakingWindow>(IsUtilityWindow);
@ -20,6 +26,7 @@ namespace Spine.Unity.Editor {
window.skeletonDataAsset = command.context as SkeletonDataAsset;
window.Show();
}
#endif
public SkeletonDataAsset skeletonDataAsset;
[SpineSkin(dataField:"skeletonDataAsset")]