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