mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[unity] SpineEditorUtilities better defines.
This commit is contained in:
parent
ce9492a74c
commit
02cbf807eb
@ -1482,28 +1482,28 @@ namespace Spine.Unity.Editor {
|
||||
static Dictionary<int, SkeletonUtilityBone> skeletonUtilityBoneTable = new Dictionary<int, SkeletonUtilityBone>();
|
||||
static Dictionary<int, BoundingBoxFollower> boundingBoxFollowerTable = new Dictionary<int, BoundingBoxFollower>();
|
||||
|
||||
#if UNITY_2017_2_OR_NEWER
|
||||
#if NEWPLAYMODECALLBACKS
|
||||
internal static void IconsOnPlaymodeStateChanged (PlayModeStateChange stateChange) {
|
||||
#else
|
||||
#else
|
||||
internal static void IconsOnPlaymodeStateChanged () {
|
||||
#endif
|
||||
#endif
|
||||
skeletonRendererTable.Clear();
|
||||
skeletonUtilityBoneTable.Clear();
|
||||
boundingBoxFollowerTable.Clear();
|
||||
|
||||
#if UNITY_2018
|
||||
#if NEWHIERARCHYWINDOWCALLBACKS
|
||||
EditorApplication.hierarchyChanged -= IconsOnChanged;
|
||||
#else
|
||||
#else
|
||||
EditorApplication.hierarchyWindowChanged -= IconsOnChanged;
|
||||
#endif
|
||||
#endif
|
||||
EditorApplication.hierarchyWindowItemOnGUI -= IconsOnGUI;
|
||||
|
||||
if (!Application.isPlaying && Preferences.showHierarchyIcons) {
|
||||
#if UNITY_2018
|
||||
#if NEWHIERARCHYWINDOWCALLBACKS
|
||||
EditorApplication.hierarchyChanged += IconsOnChanged;
|
||||
#else
|
||||
#else
|
||||
EditorApplication.hierarchyWindowChanged += IconsOnChanged;
|
||||
#endif
|
||||
#endif
|
||||
EditorApplication.hierarchyWindowItemOnGUI += IconsOnGUI;
|
||||
IconsOnChanged();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user