1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Limit AdvancedGenericMenu to UNITY_2019_1_OR_NEWER

This commit is contained in:
Kailey Joanette 2021-12-26 15:12:46 -05:00
parent 840eb7818d
commit f1cbe6191d
6 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
#if UNITY_2019_1_OR_NEWER
using System.Collections.Generic;
using System.Linq;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
@ -208,4 +209,5 @@ namespace XNodeEditor
gmItem.Run();
}
}
}
}
#endif

View File

@ -8,7 +8,7 @@ using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities;
using Sirenix.Utilities.Editor;
#endif
#if USE_ADVANCED_GENERIC_MENU
#if UNITY_2019_1_OR_NEWER && USE_ADVANCED_GENERIC_MENU
using GenericMenu = XNodeEditor.AdvancedGenericMenu;
#endif

View File

@ -4,7 +4,7 @@ using System.Linq;
using UnityEditor;
using UnityEngine;
using XNodeEditor.Internal;
#if USE_ADVANCED_GENERIC_MENU
#if UNITY_2019_1_OR_NEWER && USE_ADVANCED_GENERIC_MENU
using GenericMenu = XNodeEditor.AdvancedGenericMenu;
#endif

View File

@ -4,7 +4,7 @@ using System.Linq;
using UnityEditor;
using UnityEngine;
using XNodeEditor.Internal;
#if USE_ADVANCED_GENERIC_MENU
#if UNITY_2019_1_OR_NEWER && USE_ADVANCED_GENERIC_MENU
using GenericMenu = XNodeEditor.AdvancedGenericMenu;
#endif

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
#if USE_ADVANCED_GENERIC_MENU
#if UNITY_2019_1_OR_NEWER && USE_ADVANCED_GENERIC_MENU
using GenericMenu = XNodeEditor.AdvancedGenericMenu;
#endif

View File

@ -2,7 +2,7 @@
using System.Linq;
using UnityEditor;
using UnityEngine;
#if USE_ADVANCED_GENERIC_MENU
#if UNITY_2019_1_OR_NEWER && USE_ADVANCED_GENERIC_MENU
using GenericMenu = XNodeEditor.AdvancedGenericMenu;
#endif