Merged in playemgames/unity-ui-extensions-7/Brad-Nelson/minor-fix-for-newer-unity-versions-1563051919060 (pull request #53)

Minor fix for newer Unity versions.

Approved-by: Brad Nelson <info@play-em.com>
pull/413/head
Brad Nelson 2019-08-13 20:30:49 +00:00 committed by Simon Jackson
commit 1d5bfd7e30
1 changed files with 7 additions and 2 deletions

View File

@ -640,6 +640,7 @@ namespace UnityEngine.UI.Extensions {
usesNewRendering = false;
if (Application.unityVersion.StartsWith("2019.1.")) {
if (!Char.IsDigit(Application.unityVersion[8])) {
int number = Convert.ToInt32(Application.unityVersion[7].ToString());
if (number > 4) {
@ -649,6 +650,10 @@ namespace UnityEngine.UI.Extensions {
else {
usesNewRendering = true;
}
}
else {
usesNewRendering = true;
}
#endif
base.OnEnable();