Skip to content

Commit 9328d02

Browse files
authored
Merge pull request #22 from russellquinn/rrq-fix-build-editor-errors
Fix Unity build errors caused by editor scripts
2 parents 27ed237 + 77e0f6c commit 9328d02

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

UiRoundedCorners/Editor/ImageWithIndependentRoundedCornersInspector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if UNITY_EDITOR
2+
13
using UnityEditor;
24
using UnityEngine.UI;
35

@@ -18,4 +20,6 @@ public override void OnInspectorGUI() {
1820
}
1921
}
2022
}
21-
}
23+
}
24+
25+
#endif

UiRoundedCorners/Editor/ImageWithRoundedCornersInspector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if UNITY_EDITOR
2+
13
using UnityEditor;
24
using UnityEngine.UI;
35

@@ -18,4 +20,6 @@ public override void OnInspectorGUI() {
1820
}
1921
}
2022
}
21-
}
23+
}
24+
25+
#endif

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.nobi.roundedcorners",
33
"displayName": "UI Rounded Corners",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"description": "This package provides components and shaders that allow you to add rounded corners to UI elements!",
66
"keywords": [
77
"UI",
@@ -20,4 +20,4 @@
2020
"/UiRoundedCorners",
2121
"/UiRoundedCorners.meta"
2222
]
23-
}
23+
}

0 commit comments

Comments
 (0)