Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: indyocean on May 09, 2013, 11:31:55 PM
Title:
2.6.1e bug in Unity 4.0.x
Post by:
indyocean
on
May 09, 2013, 11:31:55 PM
I got a error message in 2.6.1e version.
Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs(116,42): error CS0117: `UnityEngine.SystemInfo' does not contain a definition for `maxTextureSize'
'SystemInfo.maxTextureSize' in UIAtlasMaker.cs was added from Unity 4.1
------------------------------------------------------------
#if UNITY_3_5
int maxSize = 4096;
#else
int maxSize = SystemInfo.maxTextureSize; // Error in Unity 4.0.x
#endif
------------------------------------------------------------
Title:
Re: 2.6.1e bug in Unity 4.0.x
Post by:
ArenMook
on
May 09, 2013, 11:58:19 PM
Yes, you need to update your Unity. There is really no reason to stay at 4.0 considering the variety of issues that were fixed in 4.1.
Title:
Re: 2.6.1e bug in Unity 4.0.x
Post by:
rover7
on
May 13, 2013, 07:38:59 AM
What is the last commit/version that works with Unity 4.0.x?
Title:
Re: 2.6.1e bug in Unity 4.0.x
Post by:
sloopernine
on
June 03, 2013, 02:09:19 PM
I dont know if it will make new errors, but if you dont want to upgrade unity for some reason, try edit the code where you get error...
#if UNITY_3_5
int
maxSize
=
4096
;
#else
int
maxSize
=
SystemInfo
.
maxTextureSize
;
// Error in Unity 4.0.x
#endif
to something like this? ( On your own risk )
#if UNITY_3_5
int
maxSize
=
4096
;
#else
int
maxSize
=
4096
;
//SystemInfo.maxTextureSize; // Error in Unity 4.0.x
#endif