1
NGUI 3 Support / UIInput
« on: August 08, 2014, 09:47:52 AM »
is it possible to limit input field with latin letters only ?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You create 2000 widgets on the fly and it takes 200 milliseconds to create them, then conclude that NGUI 3 is not suitable for mobile games? Interesting logic there.
If you get lag when showing your shop window, then reduce the amount of content you show on your mobile device. Seems logical, doesn't it? How many thousand widgets do you have there? It's a mobile device. Limited resources. This is why most mobile games separate content into pages or at the very least -- tabs.
I gave your script a try. 227 ms to instantiate, 192 ms to enable, which makes sense. Whenever you instantiate something, it will still run its OnEnable. For my test I created a sprite, saved it as a prefab, and that's what I was instantiating. If I was instantiating panels, results would likely be quite different.
Looks to me like your font is in a scroll view, and your shaders aren't working. This can be due to targeting GLES 1.1 / ARMv6, choosing Fastest quality setting, or not having the shaders in the Resources folder where they should be. Check the FAQ.
I haven't used UIInput yet, but the first screenshot looks like you're missing the font, or the font's material is wrong. That's what happens when the quads for the letters get rendered without the material. I've seen this happen with the Unity Text Mesh component when the material is changed at runtime from the special dynamic 'Font Material'. Hopefully that helps?