Minor fix for newer Unity versions.
parent
1dc2b604e2
commit
1bc5bab70b
|
@ -638,6 +638,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) {
|
||||||
|
@ -647,6 +648,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