Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: TGillissie on April 28, 2015, 10:34:34 PM
-
I noticed that NGUI is using UNITY_4_5 constants to control some things in the Options, which aren't working properly when using Unity 4.6.x. I can fix it locally by fixing the logic in those places, but maybe a NGUI update is due?
-
What are you referring to?
-
Two specific things that don't take UNITY_4_6 into consideration, so they don't work properly in 4.6.x...
NGUIEditorTools.HideMoveTool()
UIWidget.showHandles
There may be more, but those are the two things I ran into trouble with that drew my attention to it.
-
Both of those take Unity 4.6 into consideration. It uses older code for Unity 4.5, and newer for 4.6+, so I am not sure what you mean here. Unity 4.6 has the Rect tool already, so NGUI uses it instead of the move tool like in 4.5 and earlier.
-
Sprite broken in 4.6: http://screencast.com/t/WHK5hLVTfR
Sprite fixed for 4.6: http://screencast.com/t/aReepqfDmC
Code changes for 4.6:
http://screencast.com/t/mvPUGJrZEQ
http://screencast.com/t/pczaw6nVd
-
You simply moved the code from rect tool back to move tool.
You should have been using the Rect tool in Unity 4.6+
-
Why not have the logic the way I changed it to so we don't have to manually switch tools?
-
Because the Rect tool is meant for UI. Unity's UI also uses this tool. It makes sense to use it when it's available, isn't it? I'm confused why you would want it otherwise.