Skip to content

Commit 74808ed

Browse files
committed
Add version check for 2018.x when rendering icons
1 parent b11ea17 commit 74808ed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Editor/FolderEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
#if UNITY_2019_1_OR_NEWER
2+
using UnityEditor;
23
using UnityEngine;
34
using UnityHierarchyFolders.Runtime;
45

@@ -72,4 +73,5 @@ private void RenderColorPicker()
7273
GUILayout.Space(10f);
7374
}
7475
}
75-
}
76+
}
77+
#endif

Editor/HierarchyFolderIcon.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_2019_1_OR_NEWER
12
using System;
23
using System.Collections;
34
using System.Collections.Generic;
@@ -206,3 +207,4 @@ private static void RefreshFolderIcons(int instanceid, Rect selectionrect)
206207
}
207208
}
208209
}
210+
#endif

0 commit comments

Comments
 (0)