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
commit
1d5bfd7e30
|
@ -640,9 +640,14 @@ namespace UnityEngine.UI.Extensions {
|
|||
usesNewRendering = false;
|
||||
|
||||
if (Application.unityVersion.StartsWith("2019.1.")) {
|
||||
int number = Convert.ToInt32(Application.unityVersion[7].ToString());
|
||||
if (!Char.IsDigit(Application.unityVersion[8])) {
|
||||
int number = Convert.ToInt32(Application.unityVersion[7].ToString());
|
||||
|
||||
if (number > 4) {
|
||||
if (number > 4) {
|
||||
usesNewRendering = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
usesNewRendering = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue