All it's doing is setting UV2s, if you chose to have UV2s enabled on the panel. It checks for null before passing the uv2 array, so I'm not sure what the null ref can possibly be here? Everything works as expected on my end in all 3 versions of Unity (4.7, 5.4 and 5.5), so I will need more details on how to reproduce.
Title: Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
Post by: jovianminds on December 04, 2016, 07:29:38 PM
I'm on 5.3.5, and I'm seeing the same exception. It seems like mesh.SetUVs will throw an exception (at least on this version of Unity) if you pass null. I pulled the if check out and wrapped it around the call, and now all runs fine.
I'm just not sure if there needs to be an else clause that passes an empty List<Vector4>.
Title: Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
Post by: ArenMook on December 04, 2016, 10:21:30 PM
sspsos74, can you confirm that you're also on pre-Unity 5.4?
Title: Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
Post by: sspsos74 on December 05, 2016, 04:38:39 AM
I'm using unity 5.3.7p2 personal...
when I play my project in unity editor, following errors also appears.
Too many vertices on one panel: 65244 UnityEngine.Debug:LogError(Object) UIDrawCall:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:601) UIPanel:FillDrawCall(UIDrawCall) (at Assets/NGUI/Scripts/UI/UIPanel.cs:1497) UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1325) UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1268)
new version's UI Panel has a check box : UV2 (for custom shader effects) - I didn't see this in previous version. if I check it, it seems show NGUI panel in Unity editor mode (when I upgraded NGUI, my NGUI ui's were vanished and it showed errors) but if I reload this scene, it's unchecked (I don't know why ???)
Title: Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
Post by: ArenMook on December 05, 2016, 04:46:32 AM
Yep, that would be it then. Officially, NGUI 3.11 supports Unity 4.7, 5.4 and 5.5. I've made the changes locally so you will find them in the next update, but until then you can make the same change locally to get it working as expected. I'm attaching the modified UIDrawCall file for convenience.
Title: Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
Post by: sspsos74 on December 05, 2016, 05:37:14 AM
;D Thank you for your support.
Actually, I can wait for next update too. Also I want to migrate my unity project to version 5.5.x of Unity but several assetstore assets are not migrated to unity 5.5.x yet. So I have to wait those assets support unity5.5.x