mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.8-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.8-beta
This commit is contained in:
commit
cdd06b22f1
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#define SPINE_SKELETON_MECANIM
|
#define SPINE_SKELETON_MECANIM
|
||||||
|
|
||||||
#if (UNITY_2017_4 || UNITY_2018)
|
#if (UNITY_2017_4 || UNITY_2018_1_OR_NEWER )
|
||||||
#define SPINE_UNITY_2018_PREVIEW_API
|
#define SPINE_UNITY_2018_PREVIEW_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -106,8 +106,13 @@ namespace Spine.Unity.Editor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OnSelectionChange () {
|
void OnSelectionChange () {
|
||||||
|
#if UNITY_2019_1_OR_NEWER
|
||||||
|
SceneView.duringSceneGui -= this.OnSceneGUI;
|
||||||
|
SceneView.duringSceneGui += this.OnSceneGUI;
|
||||||
|
#else
|
||||||
SceneView.onSceneGUIDelegate -= this.OnSceneGUI;
|
SceneView.onSceneGUIDelegate -= this.OnSceneGUI;
|
||||||
SceneView.onSceneGUIDelegate += this.OnSceneGUI;
|
SceneView.onSceneGUIDelegate += this.OnSceneGUI;
|
||||||
|
#endif
|
||||||
|
|
||||||
bool noSkeletonRenderer = false;
|
bool noSkeletonRenderer = false;
|
||||||
|
|
||||||
@ -148,7 +153,11 @@ namespace Spine.Unity.Editor {
|
|||||||
isPrefab = false;
|
isPrefab = false;
|
||||||
boneName = string.Empty;
|
boneName = string.Empty;
|
||||||
bone = null;
|
bone = null;
|
||||||
|
#if UNITY_2019_1_OR_NEWER
|
||||||
|
SceneView.duringSceneGui -= this.OnSceneGUI;
|
||||||
|
#else
|
||||||
SceneView.onSceneGUIDelegate -= this.OnSceneGUI;
|
SceneView.onSceneGUIDelegate -= this.OnSceneGUI;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDestroy () {
|
void OnDestroy () {
|
||||||
|
|||||||
@ -201,8 +201,13 @@ namespace Spine.Unity.Editor {
|
|||||||
Icons.Initialize();
|
Icons.Initialize();
|
||||||
|
|
||||||
// Drag and Drop
|
// Drag and Drop
|
||||||
|
#if UNITY_2019_1_OR_NEWER
|
||||||
|
SceneView.duringSceneGui -= DragAndDropInstantiation.SceneViewDragAndDrop;
|
||||||
|
SceneView.duringSceneGui += DragAndDropInstantiation.SceneViewDragAndDrop;
|
||||||
|
#else
|
||||||
SceneView.onSceneGUIDelegate -= DragAndDropInstantiation.SceneViewDragAndDrop;
|
SceneView.onSceneGUIDelegate -= DragAndDropInstantiation.SceneViewDragAndDrop;
|
||||||
SceneView.onSceneGUIDelegate += DragAndDropInstantiation.SceneViewDragAndDrop;
|
SceneView.onSceneGUIDelegate += DragAndDropInstantiation.SceneViewDragAndDrop;
|
||||||
|
#endif
|
||||||
|
|
||||||
EditorApplication.hierarchyWindowItemOnGUI -= HierarchyHandler.HandleDragAndDrop;
|
EditorApplication.hierarchyWindowItemOnGUI -= HierarchyHandler.HandleDragAndDrop;
|
||||||
EditorApplication.hierarchyWindowItemOnGUI += HierarchyHandler.HandleDragAndDrop;
|
EditorApplication.hierarchyWindowItemOnGUI += HierarchyHandler.HandleDragAndDrop;
|
||||||
|
|||||||
@ -49,8 +49,8 @@ namespace Spine.Unity {
|
|||||||
public SkeletonDataAsset skeletonDataAsset;
|
public SkeletonDataAsset skeletonDataAsset;
|
||||||
public SkeletonDataAsset SkeletonDataAsset { get { return skeletonDataAsset; } }
|
public SkeletonDataAsset SkeletonDataAsset { get { return skeletonDataAsset; } }
|
||||||
|
|
||||||
[SpineSkin(dataField:"skeletonDataAsset")]
|
[SpineSkin(dataField:"skeletonDataAsset", defaultAsEmptyString:true)]
|
||||||
public string initialSkinName = "default";
|
public string initialSkinName;
|
||||||
public bool initialFlipX, initialFlipY;
|
public bool initialFlipX, initialFlipY;
|
||||||
|
|
||||||
[SpineAnimation(dataField:"skeletonDataAsset")]
|
[SpineAnimation(dataField:"skeletonDataAsset")]
|
||||||
@ -111,7 +111,7 @@ namespace Spine.Unity {
|
|||||||
protected override void Reset () {
|
protected override void Reset () {
|
||||||
|
|
||||||
base.Reset();
|
base.Reset();
|
||||||
if (material == null || material.shader != Shader.Find("Spine/SkeletonGraphic (Premultiply Alpha)"))
|
if (material == null || material.shader != Shader.Find("Spine/SkeletonGraphic"))
|
||||||
Debug.LogWarning("SkeletonGraphic works best with the SkeletonGraphic material.");
|
Debug.LogWarning("SkeletonGraphic works best with the SkeletonGraphic material.");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user